Skip to content

Commit ee0d232

Browse files
authored
Add feature-set annotation to all manifest resources (#2073)
The feature-set annotation was originally applied by the crd-generator to the generated CRDs. Now, that annotaion is being added by the overlay, and is being added to all resources in the manifest. Each manifest has an annotation value based its name. The crd-generator is now adding a generated annotation indicating what the CRD was generated for. Signed-off-by: Todd Short <tshort@redhat.com>
1 parent 245fc52 commit ee0d232

File tree

18 files changed

+331
-13
lines changed

18 files changed

+331
-13
lines changed

config/base/catalogd/crd/experimental/olm.operatorframework.io_clustercatalogs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ kind: CustomResourceDefinition
44
metadata:
55
annotations:
66
controller-gen.kubebuilder.io/version: v0.18.0
7-
olm.operatorframework.io/feature-set: experimental
7+
olm.operatorframework.io/generated: experimental
88
name: clustercatalogs.olm.operatorframework.io
99
spec:
1010
group: olm.operatorframework.io

config/base/catalogd/crd/standard/olm.operatorframework.io_clustercatalogs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ kind: CustomResourceDefinition
44
metadata:
55
annotations:
66
controller-gen.kubebuilder.io/version: v0.18.0
7-
olm.operatorframework.io/feature-set: standard
7+
olm.operatorframework.io/generated: standard
88
name: clustercatalogs.olm.operatorframework.io
99
spec:
1010
group: olm.operatorframework.io

config/base/operator-controller/crd/experimental/olm.operatorframework.io_clusterextensions.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ kind: CustomResourceDefinition
44
metadata:
55
annotations:
66
controller-gen.kubebuilder.io/version: v0.18.0
7-
olm.operatorframework.io/feature-set: experimental
7+
olm.operatorframework.io/generated: experimental
88
name: clusterextensions.olm.operatorframework.io
99
spec:
1010
group: olm.operatorframework.io

config/base/operator-controller/crd/standard/olm.operatorframework.io_clusterextensions.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ kind: CustomResourceDefinition
44
metadata:
55
annotations:
66
controller-gen.kubebuilder.io/version: v0.18.0
7-
olm.operatorframework.io/feature-set: standard
7+
olm.operatorframework.io/generated: standard
88
name: clusterextensions.olm.operatorframework.io
99
spec:
1010
group: olm.operatorframework.io

config/overlays/basic-olm/kustomization.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,7 @@
22
# DO NOT ADD A NAMESPACE HERE
33
apiVersion: kustomize.config.k8s.io/v1beta1
44
kind: Kustomization
5+
commonAnnotations:
6+
olm.operatorframework.io/feature-set: basic-olm
57
components:
68
- ../../components/base/standard

config/overlays/experimental-e2e/kustomization.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
# DO NOT ADD A NAMESPACE HERE
33
apiVersion: kustomize.config.k8s.io/v1beta1
44
kind: Kustomization
5+
commonAnnotations:
6+
olm.operatorframework.io/feature-set: experimental
57
components:
68
- ../../components/base/experimental
79
- ../../components/e2e

config/overlays/experimental/kustomization.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
# DO NOT ADD A NAMESPACE HERE
33
apiVersion: kustomize.config.k8s.io/v1beta1
44
kind: Kustomization
5+
commonAnnotations:
6+
olm.operatorframework.io/feature-set: experimental
57
components:
68
- ../../components/base/experimental
79
# This must be last due to namespace overwrite issues of the ca

config/overlays/standard-e2e/kustomization.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
# DO NOT ADD A NAMESPACE HERE
33
apiVersion: kustomize.config.k8s.io/v1beta1
44
kind: Kustomization
5+
commonAnnotations:
6+
olm.operatorframework.io/feature-set: standard-e2e
57
components:
68
- ../../components/base/standard
79
- ../../components/e2e

config/overlays/standard/kustomization.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
# DO NOT ADD A NAMESPACE HERE
33
apiVersion: kustomize.config.k8s.io/v1beta1
44
kind: Kustomization
5+
commonAnnotations:
6+
olm.operatorframework.io/feature-set: standard
57
components:
68
- ../../components/base/standard
79
# This must be last due to namespace overwrite issues of the ca

config/overlays/tilt-local-dev/catalogd/kustomization.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
# DO NOT ADD A NAMESPACE HERE
33
apiVersion: kustomize.config.k8s.io/v1beta1
44
kind: Kustomization
5+
commonAnnotations:
6+
olm.operatorframework.io/feature-set: tilt
57
resources:
68
- ../../../base/catalogd
79
- ../../../base/common

0 commit comments

Comments
 (0)