Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions cockroachdb/templates/job.init.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,9 @@ spec:
- name: {{ template "cockroachdb.fullname" . }}.init-certs.registry
{{- end }}
{{- end }}
{{- if and .Values.tls.enabled (not .Values.tls.certs.provided) (not .Values.tls.certs.certManager) }}
{{- if and .Values.tls.enabled }}
serviceAccountName: {{ template "cockroachdb.tls.serviceAccount.name" . }}
{{- if and (not .Values.tls.certs.provided) (not .Values.tls.certs.certManager) }}
initContainers:
# The init-certs container sends a CSR (certificate signing request) to
# the Kubernetes cluster.
Expand Down Expand Up @@ -75,9 +76,8 @@ spec:
volumeMounts:
- name: client-certs
mountPath: /cockroach-certs/
{{- end }}
{{- if and .Values.tls.enabled (.Values.tls.certs.provided)}}
serviceAccountName: {{ template "cockroachdb.tls.serviceAccount.name" . }}
{{- end }}
{{- if .Values.tls.certs.provided }}
initContainers:
- name: copy-certs
image: "busybox"
Expand All @@ -96,6 +96,7 @@ spec:
mountPath: /cockroach-certs/
- name: certs-secret
mountPath: /certs/
{{- end }}
{{- end }}
{{- with .Values.init.affinity }}
affinity: {{- toYaml . | nindent 8 }}
Expand Down