Skip to content

Commit

Permalink
Avoid conflict when deploying one operator per namespace (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
jlcCriteo committed Apr 5, 2024
1 parent f0d4007 commit 76dfbd7
Showing 1 changed file with 2 additions and 2 deletions.
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 @@ -79,14 +79,14 @@ roleRef:
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: cephfs-csi-nodeplugin-role
name: cephfs-csi-nodeplugin-role{{ if .Values.currentNamespaceOnly }}-{{ .Release.Namespace }}{{ end }}
subjects:
- kind: ServiceAccount
name: rook-csi-cephfs-plugin-sa
namespace: {{ .Release.Namespace }} # namespace:operator
roleRef:
kind: ClusterRole
name: cephfs-csi-nodeplugin
name: cephfs-csi-nodeplugin{{ if .Values.currentNamespaceOnly }}-{{ .Release.Namespace }}{{ end }}
apiGroup: rbac.authorization.k8s.io
---
{{- if .Values.csi.nfs.enabled }}
Expand Down

0 comments on commit 76dfbd7

Please sign in to comment.