charts/teleport-cluster-15.3.7/charts/teleport-operator/templates/rolebinding.yaml
2024-07-15 06:22:50 +08:00

18 lines
550 B
YAML

{{- if .Values.enabled }}
{{- if .Values.rbac.create -}}
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: {{ include "teleport-cluster.operator.fullname" . }}
namespace: {{ .Release.Namespace }}
labels: {{- include "teleport-cluster.operator.labels" . | nindent 4 }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: {{ include "teleport-cluster.operator.fullname" . }}
subjects:
- kind: ServiceAccount
name: {{ include "teleport-cluster.operator.serviceAccountName" . }}
{{- end }}
{{- end }}