diff --git a/charts/airbyte-temporal/templates/deployment.yaml b/charts/airbyte-temporal/templates/deployment.yaml index 139f6794a92..23b6a615e60 100644 --- a/charts/airbyte-temporal/templates/deployment.yaml +++ b/charts/airbyte-temporal/templates/deployment.yaml @@ -61,6 +61,19 @@ spec: {{- include "airbyte.temporal.database.envs" . | nindent 10 }} {{- end }} + + {{- if eq .Values.global.database.type "external" }} + # Assume an external database requires SSL. + - name: POSTGRES_TLS_ENABLED + value: "true" + - name: POSTGRES_TLS_DISABLE_HOST_VERIFICATION + value: "true" + - name: SQL_TLS_ENABLED + value: "true" + - name: SQL_TLS_DISABLE_HOST_VERIFICATION + value: "true" + {{- end }} + {{- if .Values.extraEnv }} {{ .Values.extraEnv | toYaml | nindent 10 }} {{- end }} diff --git a/charts/airbyte-temporal/values.yaml b/charts/airbyte-temporal/values.yaml index 4a054b10110..062d54ef338 100644 --- a/charts/airbyte-temporal/values.yaml +++ b/charts/airbyte-temporal/values.yaml @@ -9,6 +9,7 @@ global: ## extraLabels [object] - use to specify own additional labels for deployment extraLabels: {} database: + type: internal secretName: "" secretValue: ""