Skip to content

Commit e562418

Browse files
Merge pull request tigera#3860 from Brian-McM/bm-update-crd-generation
Use same yaml 'prettier' as calico does to fix hash release generation
2 parents 2f62148 + 092eb4b commit e562418

25 files changed

+34113
-32904
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -842,6 +842,7 @@ deploy: manifests kustomize
842842
manifests:
843843
$(DOCKER_RUN) sh -c 'controller-gen crd paths="./api/..." output:crd:artifacts:config=config/crd/bases'
844844
for x in $$(find config/crd/bases/*); do sed -i -e '/creationTimestamp: null/d' -e '/^---/d' -e '/^\s*$$/d' $$x; done
845+
@docker run --rm --user $(id -u):$(id -g) -v $(CURDIR)/pkg/crds/operator/:/work/crds/operator/ tmknom/prettier --write --parser=yaml /work
845846

846847
# Run go fmt against code
847848
fmt:

pkg/crds/operator/operator.tigera.io_apiservers.yaml

Lines changed: 1549 additions & 1503 deletions
Large diffs are not rendered by default.

pkg/crds/operator/operator.tigera.io_applicationlayers.yaml

Lines changed: 356 additions & 347 deletions
Large diffs are not rendered by default.

pkg/crds/operator/operator.tigera.io_authentications.yaml

Lines changed: 461 additions & 438 deletions
Large diffs are not rendered by default.

pkg/crds/operator/operator.tigera.io_compliances.yaml

Lines changed: 1010 additions & 969 deletions
Large diffs are not rendered by default.

pkg/crds/operator/operator.tigera.io_egressgateways.yaml

Lines changed: 1583 additions & 1531 deletions
Large diffs are not rendered by default.

pkg/crds/operator/operator.tigera.io_gatewayapis.yaml

Lines changed: 3576 additions & 3453 deletions
Large diffs are not rendered by default.

pkg/crds/operator/operator.tigera.io_goldmanes.yaml

Lines changed: 1436 additions & 1387 deletions
Large diffs are not rendered by default.

pkg/crds/operator/operator.tigera.io_imagesets.yaml

Lines changed: 63 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -13,66 +13,66 @@ spec:
1313
singular: imageset
1414
scope: Cluster
1515
versions:
16-
- name: v1
17-
schema:
18-
openAPIV3Schema:
19-
description: |-
20-
ImageSet is used to specify image digests for the images that the operator deploys.
21-
The name of the ImageSet is expected to be in the format `<variant>-<release>`.
22-
The `variant` used is `enterprise` if the InstallationSpec Variant is
23-
`TigeraSecureEnterprise` otherwise it is `calico`.
24-
The `release` must match the version of the variant that the operator is built to deploy,
25-
this version can be obtained by passing the `--version` flag to the operator binary.
26-
properties:
27-
apiVersion:
28-
description: |-
29-
APIVersion defines the versioned schema of this representation of an object.
30-
Servers should convert recognized schemas to the latest internal value, and
31-
may reject unrecognized values.
32-
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
33-
type: string
34-
kind:
35-
description: |-
36-
Kind is a string value representing the REST resource this object represents.
37-
Servers may infer this from the endpoint the client submits requests to.
38-
Cannot be updated.
39-
In CamelCase.
40-
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
41-
type: string
42-
metadata:
43-
type: object
44-
spec:
45-
description: ImageSetSpec defines the desired state of ImageSet.
46-
properties:
47-
images:
48-
description: |-
49-
Images is the list of images to use digests. All images that the operator will deploy
50-
must be specified.
51-
items:
52-
properties:
53-
digest:
54-
description: |-
55-
Digest is the image identifier that will be used for the Image.
56-
The field should not include a leading `@` and must be prefixed with `sha256:`.
57-
type: string
58-
image:
59-
description: |-
60-
Image is an image that the operator deploys and instead of using the built in tag
61-
the operator will use the Digest for the image identifier.
62-
The value should be the *original* image name without registry or tag or digest.
63-
For the image `docker.io/calico/node:v3.17.1` it should be represented as `calico/node`
64-
The "Installation" spec allows defining custom image registries, paths or prefixes.
65-
Even for custom images such as example.com/custompath/customprefix-calico-node:v3.17.1,
66-
this value should still be `calico/node`.
67-
type: string
68-
required:
69-
- digest
70-
- image
71-
type: object
72-
type: array
73-
type: object
74-
type: object
75-
served: true
76-
storage: true
77-
subresources:
78-
status: {}
16+
- name: v1
17+
schema:
18+
openAPIV3Schema:
19+
description: |-
20+
ImageSet is used to specify image digests for the images that the operator deploys.
21+
The name of the ImageSet is expected to be in the format `<variant>-<release>`.
22+
The `variant` used is `enterprise` if the InstallationSpec Variant is
23+
`TigeraSecureEnterprise` otherwise it is `calico`.
24+
The `release` must match the version of the variant that the operator is built to deploy,
25+
this version can be obtained by passing the `--version` flag to the operator binary.
26+
properties:
27+
apiVersion:
28+
description: |-
29+
APIVersion defines the versioned schema of this representation of an object.
30+
Servers should convert recognized schemas to the latest internal value, and
31+
may reject unrecognized values.
32+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
33+
type: string
34+
kind:
35+
description: |-
36+
Kind is a string value representing the REST resource this object represents.
37+
Servers may infer this from the endpoint the client submits requests to.
38+
Cannot be updated.
39+
In CamelCase.
40+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
41+
type: string
42+
metadata:
43+
type: object
44+
spec:
45+
description: ImageSetSpec defines the desired state of ImageSet.
46+
properties:
47+
images:
48+
description: |-
49+
Images is the list of images to use digests. All images that the operator will deploy
50+
must be specified.
51+
items:
52+
properties:
53+
digest:
54+
description: |-
55+
Digest is the image identifier that will be used for the Image.
56+
The field should not include a leading `@` and must be prefixed with `sha256:`.
57+
type: string
58+
image:
59+
description: |-
60+
Image is an image that the operator deploys and instead of using the built in tag
61+
the operator will use the Digest for the image identifier.
62+
The value should be the *original* image name without registry or tag or digest.
63+
For the image `docker.io/calico/node:v3.17.1` it should be represented as `calico/node`
64+
The "Installation" spec allows defining custom image registries, paths or prefixes.
65+
Even for custom images such as example.com/custompath/customprefix-calico-node:v3.17.1,
66+
this value should still be `calico/node`.
67+
type: string
68+
required:
69+
- digest
70+
- image
71+
type: object
72+
type: array
73+
type: object
74+
type: object
75+
served: true
76+
storage: true
77+
subresources:
78+
status: {}

0 commit comments

Comments
 (0)