Skip to content

Commit

Permalink
deploy init containers
Browse files Browse the repository at this point in the history
  • Loading branch information
jsirianni committed Dec 12, 2024
1 parent 45ce071 commit 727466b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions charts/bindplane/templates/bindplane-jobs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ spec:
{{- toYaml .Values.topologySpreadConstraints.jobs | nindent 8 }}
{{- end }}
{{- if .Values.backend.postgres.sslsecret.name }}
{{- if eq .Values.backend.postgres.sslSource "secret" }}
initContainers:
- name: postgres-tls
image: {{ .Values.busybox_image }}
Expand All @@ -74,6 +73,7 @@ spec:
subPath: init.sh
- mountPath: /postgres-tls
name: postgres-tls-dir
{{- if eq .Values.backend.postgres.sslSource "secret" }}
{{- if .Values.backend.postgres.sslsecret.sslrootcertSubPath }}
- mountPath: /ca.crt
name: {{ .Values.backend.postgres.sslsecret.name }}
Expand All @@ -87,7 +87,7 @@ spec:
name: {{ .Values.backend.postgres.sslsecret.name }}
subPath: {{ .Values.backend.postgres.sslsecret.sslkeySubPath }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}
containers:
- name: server
Expand Down
4 changes: 2 additions & 2 deletions charts/bindplane/templates/bindplane.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ spec:
mountPath: /data
{{- end }}
{{- if .Values.backend.postgres.sslsecret.name }}
{{- if eq .Values.backend.postgres.sslSource "secret" }}
- name: postgres-tls
image: {{ .Values.busybox_image }}
command:
Expand All @@ -99,6 +98,7 @@ spec:
subPath: init.sh
- mountPath: /postgres-tls
name: postgres-tls-dir
{{- if eq .Values.backend.postgres.sslSource "secret" }}
{{- if .Values.backend.postgres.sslsecret.sslrootcertSubPath }}
- mountPath: /ca.crt
name: {{ .Values.backend.postgres.sslsecret.name }}
Expand All @@ -112,7 +112,7 @@ spec:
name: {{ .Values.backend.postgres.sslsecret.name }}
subPath: {{ .Values.backend.postgres.sslsecret.sslkeySubPath }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}
containers:
- name: server
Expand Down

0 comments on commit 727466b

Please sign in to comment.