Skip to content

Commit

Permalink
fix(helm): support tls when migrate
Browse files Browse the repository at this point in the history
  • Loading branch information
StarpTech committed Feb 1, 2024
1 parent 1eaac5c commit 8592da4
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions helm/cosmo/charts/controlplane/templates/database-migration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,26 @@ spec:
secretKeyRef:
name: {{ include "controlplane.fullname" . }}-secret
key: databaseUrl
{{- if .Values.configuration.databaseTlsCert }}
- name: DB_TLS_CERT
valueFrom:
secretKeyRef:
name: {{ include "controlplane.fullname" . }}-secret
key: databaseTlsCert
{{- end }}
{{- if .Values.configuration.databaseTlsCa }}
- name: DB_TLS_CA
valueFrom:
secretKeyRef:
name: {{ include "controlplane.fullname" . }}-secret
key: databaseTlsCa
{{- end }}
{{- if .Values.configuration.databaseTlsKey }}
- name: DB_TLS_KEY
valueFrom:
secretKeyRef:
name: {{ include "controlplane.fullname" . }}-secret
key: databaseTlsKey
{{- end }}
args:
- "/app/dist/bin/db-migrate.js"

0 comments on commit 8592da4

Please sign in to comment.