Skip to content

Commit

Permalink
Avoid conflict when deploying one operator per namespace (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
jlcCriteo committed May 13, 2024
1 parent 6645cd5 commit a38ea67
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion deploy/charts/rook-ceph/templates/clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ rules:
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: objectstorage-provisioner-role
name: objectstorage-provisioner-role{{ if .Values.currentNamespaceOnly }}-{{ .Release.Namespace }}{{ end }}
labels:
app.kubernetes.io/part-of: container-object-storage-interface
app.kubernetes.io/component: driver-ceph
Expand Down
4 changes: 2 additions & 2 deletions deploy/charts/rook-ceph/templates/clusterrolebinding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -136,14 +136,14 @@ roleRef:
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: objectstorage-provisioner-role-binding
name: objectstorage-provisioner-role-binding{{ if .Values.currentNamespaceOnly }}-{{ .Release.Namespace }}{{ end }}
labels:
app.kubernetes.io/part-of: container-object-storage-interface
app.kubernetes.io/component: driver-ceph
app.kubernetes.io/name: cosi-driver-ceph
subjects:
- kind: ServiceAccount
name: objectstorage-provisioner
name: objectstorage-provisioner{{ if .Values.currentNamespaceOnly }}-{{ .Release.Namespace }}{{ end }}
namespace: {{ .Release.Namespace }} # namespace:operator
roleRef:
kind: ClusterRole
Expand Down

0 comments on commit a38ea67

Please sign in to comment.