rancher-partner-charts/charts/cockroach-labs/cockroachdb/templates/rolebinding-certSelfSigner....

30 lines
1.1 KiB
YAML
Raw Normal View History

2022-10-26 08:01:31 +00:00
{{- if and .Values.tls.enabled .Values.tls.certs.selfSigner.enabled }}
2021-06-24 01:55:05 +00:00
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
2022-10-26 08:01:31 +00:00
name: {{ template "selfcerts.fullname" . }}
2021-06-24 01:55:05 +00:00
namespace: {{ .Release.Namespace | quote }}
2022-10-26 08:01:31 +00:00
annotations:
# This is what defines this resource as a hook. Without this line, the
# job is considered part of the release.
"helm.sh/hook": pre-install,pre-upgrade
"helm.sh/hook-weight": "3"
"helm.sh/hook-delete-policy": hook-succeeded,hook-failed
2021-06-24 01:55:05 +00:00
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: Role
2022-10-26 08:01:31 +00:00
name: {{ template "selfcerts.fullname" . }}
2021-06-24 01:55:05 +00:00
subjects:
- kind: ServiceAccount
2022-10-26 08:01:31 +00:00
name: {{ template "selfcerts.fullname" . }}
2021-06-24 01:55:05 +00:00
namespace: {{ .Release.Namespace | quote }}
{{- end }}