Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions manifests/02_operator_cr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 2 additions & 0 deletions manifests/03_configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions manifests/03_service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 5 additions & 1 deletion manifests/04_serviceaccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,15 @@ metadata:
namespace: openshift-cluster-storage-operator
labels:
app: csi-snapshot-controller-operator
annotations:
include.release.openshift.io/self-managed-high-availability: "true"

---

apiVersion: v1
kind: ServiceAccount
metadata:
name: csi-snapshot-controller
namespace: openshift-cluster-storage-operator
namespace: openshift-cluster-storage-operator
annotations:
include.release.openshift.io/self-managed-high-availability: "true"
8 changes: 8 additions & 0 deletions manifests/05_operand_rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down Expand Up @@ -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
Expand All @@ -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"]
Expand All @@ -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
Expand Down
2 changes: 2 additions & 0 deletions manifests/05_operator_rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 8 additions & 0 deletions manifests/05_user_rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand All @@ -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"]
Expand All @@ -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"]
Expand All @@ -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"]
Expand Down
1 change: 1 addition & 0 deletions manifests/07_deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions manifests/08_clusteroperator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down