diff --git a/manifests/02_operator_cr.yaml b/manifests/02_operator_cr.yaml index a90d70aa6..4c9b6c90e 100644 --- a/manifests/02_operator_cr.yaml +++ b/manifests/02_operator_cr.yaml @@ -3,6 +3,7 @@ kind: CSISnapshotController metadata: name: cluster annotations: + include.release.openshift.io/self-managed-high-availability: "true" release.openshift.io/create-only: "true" spec: managementState: Managed diff --git a/manifests/03_configmap.yaml b/manifests/03_configmap.yaml index a74c14c83..361312ab8 100644 --- a/manifests/03_configmap.yaml +++ b/manifests/03_configmap.yaml @@ -5,6 +5,8 @@ metadata: name: csi-snapshot-controller-operator-config labels: app: csi-snapshot-controller-operator + annotations: + include.release.openshift.io/self-managed-high-availability: "true" data: operator-config.yaml: | apiVersion: operator.openshift.io/v1alpha1 diff --git a/manifests/03_service.yaml b/manifests/03_service.yaml index bf5df39f2..08df14534 100644 --- a/manifests/03_service.yaml +++ b/manifests/03_service.yaml @@ -3,6 +3,7 @@ apiVersion: v1 kind: Service metadata: annotations: + include.release.openshift.io/self-managed-high-availability: "true" service.alpha.openshift.io/serving-cert-secret-name: serving-cert labels: app: csi-snapshot-controller-operator diff --git a/manifests/04_serviceaccount.yaml b/manifests/04_serviceaccount.yaml index 0a029afcb..36479a70e 100644 --- a/manifests/04_serviceaccount.yaml +++ b/manifests/04_serviceaccount.yaml @@ -5,6 +5,8 @@ metadata: namespace: openshift-cluster-storage-operator labels: app: csi-snapshot-controller-operator + annotations: + include.release.openshift.io/self-managed-high-availability: "true" --- @@ -12,4 +14,6 @@ apiVersion: v1 kind: ServiceAccount metadata: name: csi-snapshot-controller - namespace: openshift-cluster-storage-operator \ No newline at end of file + namespace: openshift-cluster-storage-operator + annotations: + include.release.openshift.io/self-managed-high-availability: "true" diff --git a/manifests/05_operand_rbac.yaml b/manifests/05_operand_rbac.yaml index 4a5dd620a..dd78d8473 100644 --- a/manifests/05_operand_rbac.yaml +++ b/manifests/05_operand_rbac.yaml @@ -2,6 +2,8 @@ kind: ClusterRole apiVersion: rbac.authorization.k8s.io/v1 metadata: name: openshift-csi-snapshot-controller-runner + annotations: + include.release.openshift.io/self-managed-high-availability: "true" rules: - apiGroups: [""] resources: ["persistentvolumes"] @@ -33,6 +35,8 @@ kind: ClusterRoleBinding apiVersion: rbac.authorization.k8s.io/v1 metadata: name: openshift-csi-snapshot-controller-role + annotations: + include.release.openshift.io/self-managed-high-availability: "true" subjects: - kind: ServiceAccount name: csi-snapshot-controller @@ -48,6 +52,8 @@ apiVersion: rbac.authorization.k8s.io/v1 metadata: namespace: openshift-cluster-storage-operator name: csi-snapshot-controller-leaderelection + annotations: + include.release.openshift.io/self-managed-high-availability: "true" rules: - apiGroups: ["coordination.k8s.io"] resources: ["leases"] @@ -59,6 +65,8 @@ apiVersion: rbac.authorization.k8s.io/v1 metadata: name: csi-snapshot-controller-leaderelection namespace: openshift-cluster-storage-operator + annotations: + include.release.openshift.io/self-managed-high-availability: "true" subjects: - kind: ServiceAccount name: csi-snapshot-controller diff --git a/manifests/05_operator_rbac.yaml b/manifests/05_operator_rbac.yaml index 028a786d3..17173a172 100644 --- a/manifests/05_operator_rbac.yaml +++ b/manifests/05_operator_rbac.yaml @@ -6,6 +6,8 @@ metadata: labels: kubernetes.io/cluster-service: "true" addonmanager.kubernetes.io/mode: Reconcile + annotations: + include.release.openshift.io/self-managed-high-availability: "true" subjects: - kind: ServiceAccount name: csi-snapshot-controller-operator diff --git a/manifests/05_user_rbac.yaml b/manifests/05_user_rbac.yaml index 9afa3a5a0..a1a0c00c4 100644 --- a/manifests/05_user_rbac.yaml +++ b/manifests/05_user_rbac.yaml @@ -11,6 +11,8 @@ metadata: addonmanager.kubernetes.io/mode: Reconcile rbac.authorization.k8s.io/aggregate-to-edit: "true" rbac.authorization.k8s.io/aggregate-to-admin: "true" + annotations: + include.release.openshift.io/self-managed-high-availability: "true" rules: - apiGroups: ["snapshot.storage.k8s.io"] resources: ["volumesnapshots"] @@ -28,6 +30,8 @@ metadata: kubernetes.io/cluster-service: "true" addonmanager.kubernetes.io/mode: Reconcile rbac.authorization.k8s.io/aggregate-to-view: "true" + annotations: + include.release.openshift.io/self-managed-high-availability: "true" rules: - apiGroups: ["snapshot.storage.k8s.io"] resources: ["volumesnapshots"] @@ -45,6 +49,8 @@ metadata: kubernetes.io/cluster-service: "true" addonmanager.kubernetes.io/mode: Reconcile authorization.openshift.io/aggregate-to-basic-user: "true" + annotations: + include.release.openshift.io/self-managed-high-availability: "true" rules: - apiGroups: ["snapshot.storage.k8s.io"] resources: ["volumesnapshotclasses"] @@ -63,6 +69,8 @@ metadata: kubernetes.io/cluster-service: "true" addonmanager.kubernetes.io/mode: Reconcile storage.openshift.io/aggregate-to-storage-admin: "true" + annotations: + include.release.openshift.io/self-managed-high-availability: "true" rules: - apiGroups: ["snapshot.storage.k8s.io"] resources: ["volumesnapshotclasses", "volumesnapshotcontents"] diff --git a/manifests/07_deployment.yaml b/manifests/07_deployment.yaml index 22c0c3491..0d2b83faf 100644 --- a/manifests/07_deployment.yaml +++ b/manifests/07_deployment.yaml @@ -8,6 +8,7 @@ metadata: annotations: config.openshift.io/inject-proxy: csi-snapshot-controller-operator exclude.release.openshift.io/internal-openshift-hosted: "true" + include.release.openshift.io/self-managed-high-availability: "true" spec: replicas: 1 selector: diff --git a/manifests/08_clusteroperator.yaml b/manifests/08_clusteroperator.yaml index edc327d96..8bd9854ea 100644 --- a/manifests/08_clusteroperator.yaml +++ b/manifests/08_clusteroperator.yaml @@ -4,6 +4,7 @@ metadata: name: csi-snapshot-controller annotations: exclude.release.openshift.io/internal-openshift-hosted: "true" + include.release.openshift.io/self-managed-high-availability: "true" status: versions: - name: operator