diff --git a/charts/airbyte-cron/templates/cron-secrets.yaml b/charts/airbyte-cron/templates/cron-secrets.yaml new file mode 100644 index 0000000000000..1d22b17e7e23a --- /dev/null +++ b/charts/airbyte-cron/templates/cron-secrets.yaml @@ -0,0 +1,18 @@ +# Create secrets only for the local deployment +{{- if .Values.secrets }} +apiVersion: v1 +kind: Secret +metadata: + name: cron-secrets + labels: + {{- include "airbyte.labels" . | nindent 4 }} + annotations: + helm.sh/hook: pre-install,pre-upgrade + helm.sh/hook-weight: "-1" + +type: Opaque +data: + {{- range $k, $v := mergeOverwrite .Values.secrets .Values.global.secrets }} + {{ $k }}: {{ if $v }}{{ $v | b64enc }} {{else}}""{{end}} + {{- end }} + {{- end }} diff --git a/charts/airbyte-cron/values.yaml b/charts/airbyte-cron/values.yaml index 822932ecb957c..cc7e2f6d8ef10 100644 --- a/charts/airbyte-cron/values.yaml +++ b/charts/airbyte-cron/values.yaml @@ -9,6 +9,7 @@ global: secretValue: "" host: "example.com" port: "5432" + secrets: {} enabled: true ## cron.replicaCount Number of cron replicas