26 lines
1001 B
YAML
26 lines
1001 B
YAML
|
{{- if and .Values.tls.enabled .Values.tls.certs.selfSigner.enabled }}
|
||
|
{{ template "cockroachdb.tls.certs.selfSigner.validation" . }}
|
||
|
kind: ServiceAccount
|
||
|
apiVersion: v1
|
||
|
metadata:
|
||
|
name: {{ template "selfcerts.fullname" . }}
|
||
|
namespace: {{ .Release.Namespace | quote }}
|
||
|
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": "1"
|
||
|
"helm.sh/hook-delete-policy": hook-succeeded,hook-failed
|
||
|
{{- with .Values.tls.certs.selfSigner.svcAccountAnnotations }}
|
||
|
{{- toYaml . | nindent 4 }}
|
||
|
{{- end }}
|
||
|
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 }}
|
||
|
{{- end }}
|