From 06a721022dc28331e3be0b38e60c607c80122c4e Mon Sep 17 00:00:00 2001 From: michaeljguarino Date: Thu, 10 Oct 2024 18:03:02 -0400 Subject: [PATCH] conditional airbyte secret --- airbyte/helm/airbyte/Chart.yaml | 2 +- airbyte/helm/airbyte/templates/bootloader.yaml | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/airbyte/helm/airbyte/Chart.yaml b/airbyte/helm/airbyte/Chart.yaml index 2809d64f4..89746435b 100644 --- a/airbyte/helm/airbyte/Chart.yaml +++ b/airbyte/helm/airbyte/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: airbyte description: Unified data integration platform type: application -version: 0.4.32 +version: 0.4.33 appVersion: 0.50.33 dependencies: - name: airbyte diff --git a/airbyte/helm/airbyte/templates/bootloader.yaml b/airbyte/helm/airbyte/templates/bootloader.yaml index 93af74c20..64bbdd3e7 100644 --- a/airbyte/helm/airbyte/templates/bootloader.yaml +++ b/airbyte/helm/airbyte/templates/bootloader.yaml @@ -41,11 +41,19 @@ spec: configMapKeyRef: name: airbyte-airbyte-env key: DATABASE_PORT + {{ if .Values.global.database.secretName }} - name: DATABASE_PASSWORD valueFrom: secretKeyRef: name: {{ .Values.global.database.secretName }} key: {{ .Values.global.database.secretValue }} + {{ else }} + - name: DATABASE_PASSWORD + valueFrom: + secretKeyRef: + name: airbyte-airbyte-secrets + key: DATABASE_PASSWORD + {{ end }} - name: DATABASE_URL valueFrom: configMapKeyRef: