Redis operator for Kubernetes with HAProxy support
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

18 lines
542 B

{{- if .Values.clusterScoped -}}
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: {{ include "redis-operator.serviceAccountName" . }}
subjects:
- kind: ServiceAccount
name: {{ include "redis-operator.serviceAccountName" . }}
{{ if .Values.watchNamespace }}
namespace: "{{ .Values.watchNamespace }}"
{{ else }}
namespace: "{{ .Release.Namespace }}"
{{ end }}
roleRef:
kind: ClusterRole
name: {{ include "redis-operator.serviceAccountName" . }}
apiGroup: rbac.authorization.k8s.io
{{- end }}