Skip to content

Commit

Permalink
fix missing cron-secrets secret in airbyte-cron chart (#19552)
Browse files Browse the repository at this point in the history
  • Loading branch information
xpuska513 authored Nov 17, 2022
1 parent d66dc88 commit 1d6cdb4
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
18 changes: 18 additions & 0 deletions charts/airbyte-cron/templates/cron-secrets.yaml
Original file line number Diff line number Diff line change
@@ -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 }}
1 change: 1 addition & 0 deletions charts/airbyte-cron/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ global:
secretValue: ""
host: "example.com"
port: "5432"
secrets: {}

enabled: true
## cron.replicaCount Number of cron replicas
Expand Down

0 comments on commit 1d6cdb4

Please sign in to comment.