Skip to content

Commit

Permalink
fix RBAC issue with namespaced deployment
Browse files Browse the repository at this point in the history
fixes ucloud#72
  • Loading branch information
zehweh authored Mar 2, 2021
1 parent 6eecca8 commit f46de7f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions charts/redis-cluster-operator/templates/role_binding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ subjects:
name: redis-cluster-operator
namespace: {{.Release.Namespace}}
roleRef:
{{- if eq (len .Values.operator.namespace) 0 }}
kind: ClusterRole
{{- else }}
kind: Role
{{- end }}
name: redis-cluster-operator
apiGroup: rbac.authorization.k8s.io

0 comments on commit f46de7f

Please sign in to comment.