File tree Expand file tree Collapse file tree 5 files changed +31
-0
lines changed
Expand file tree Collapse file tree 5 files changed +31
-0
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,12 @@ apiVersion: apiextensions.k8s.io/v1
1515kind : CustomResourceDefinition
1616metadata :
1717 name : serviceexports.multicluster.x-k8s.io
18+ labels :
19+ multicluster.x-k8s.io/release-version : " v0.3.0"
20+ # The revision is updated on each CRD change and reset back to 0 on every new version.
21+ # It can be used together with the version label when installing those CRDs
22+ # and prevent any downgrades.
23+ multicluster.x-k8s.io/crd-schema-revision : " 0"
1824spec :
1925 group : multicluster.x-k8s.io
2026 scope : Namespaced
Original file line number Diff line number Diff line change @@ -15,6 +15,12 @@ apiVersion: apiextensions.k8s.io/v1
1515kind : CustomResourceDefinition
1616metadata :
1717 name : serviceimports.multicluster.x-k8s.io
18+ labels :
19+ multicluster.x-k8s.io/release-version : " v0.3.0"
20+ # The revision is updated on each CRD change and reset back to 0 on every new version.
21+ # It can be used together with the version label when installing those CRDs
22+ # and prevent any downgrades.
23+ multicluster.x-k8s.io/crd-schema-revision : " 0"
1824spec :
1925 group : multicluster.x-k8s.io
2026 scope : Namespaced
Original file line number Diff line number Diff line change 2626 //go:embed multicluster.x-k8s.io_serviceimports.yaml
2727 ServiceImportCRD []byte
2828)
29+
30+ const (
31+ // ReleaseVersionLabel is the label which indicate the release version
32+ ReleaseVersionLabel = "multicluster.x-k8s.io/release-version"
33+ // CustomResourceDefinitionSchemaRevisionLabel is the label which holds the CRD schema revision
34+ CustomResourceDefinitionSchemaRevisionLabel = "multicluster.x-k8s.io/crd-schema-revision"
35+ )
Original file line number Diff line number Diff line change @@ -15,6 +15,12 @@ apiVersion: apiextensions.k8s.io/v1
1515kind : CustomResourceDefinition
1616metadata :
1717 name : serviceexports.multicluster.x-k8s.io
18+ labels :
19+ multicluster.x-k8s.io/release-version : " v0.3.0"
20+ # The revision is updated on each CRD change and reset back to 0 on every new version.
21+ # It can be used together with the version label when installing those CRDs
22+ # and prevent any downgrades.
23+ multicluster.x-k8s.io/crd-schema-revision : " 0"
1824spec :
1925 group : multicluster.x-k8s.io
2026 scope : Namespaced
Original file line number Diff line number Diff line change @@ -15,6 +15,12 @@ apiVersion: apiextensions.k8s.io/v1
1515kind : CustomResourceDefinition
1616metadata :
1717 name : serviceimports.multicluster.x-k8s.io
18+ labels :
19+ multicluster.x-k8s.io/release-version : " v0.3.0"
20+ # The revision is updated on each CRD change and reset back to 0 on every new version.
21+ # It can be used together with the version label when installing those CRDs
22+ # and prevent any downgrades.
23+ multicluster.x-k8s.io/crd-schema-revision : " 0"
1824spec :
1925 group : multicluster.x-k8s.io
2026 scope : Namespaced
You can’t perform that action at this time.
0 commit comments