rancher-partner-charts/charts/cockroach-labs/cockroachdb/11.2.3/templates/clusterrolebinding.yaml

23 lines
885 B
YAML
Raw Normal View History

2022-10-26 08:01:31 +00:00
{{- if and .Values.tls.enabled (not .Values.tls.certs.provided) (not .Values.tls.certs.certManager) }}
2021-06-24 01:55:05 +00:00
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: {{ template "cockroachdb.clusterfullname" . }}
2021-06-24 01:55:05 +00:00
namespace: {{ .Release.Namespace | quote }}
labels:
helm.sh/chart: {{ template "cockroachdb.chart" . }}
app.kubernetes.io/name: {{ template "cockroachdb.name" . }}
app.kubernetes.io/instance: {{ .Release.Name | quote }}
app.kubernetes.io/managed-by: {{ .Release.Service | quote }}
{{- with .Values.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: {{ template "cockroachdb.clusterfullname" . }}
2021-06-24 01:55:05 +00:00
subjects:
- kind: ServiceAccount
name: {{ template "cockroachdb.serviceAccount.name" . }}
2021-06-24 01:55:05 +00:00
namespace: {{ .Release.Namespace | quote }}
{{- end }}