Skip to content

Commit

Permalink
Fix Helm chart upgrade when using existing secret (#1378)
Browse files Browse the repository at this point in the history
Co-authored-by: Pawel Kosiec <pawel.kosiec@gmail.com>
  • Loading branch information
voriol and pkosiec authored Feb 13, 2024
1 parent 3535efc commit bc62399
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion helm/botkube/templates/persistent-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
{{- $communications := .Values.communications }}
{{- if .Values.existingCommunicationsSecretName }}
{{- $secret := lookup "v1" "Secret" .Release.Namespace .Values.existingCommunicationsSecretName | default dict }}
{{- $data := b64dec (index $secret.data "comm_config.yaml") -}}
{{- $secretData := $secret.data | default dict -}}
{{- $data := b64dec (index $secretData "comm_config.yaml" | default "") -}}
{{- $dataYaml := $data | fromYaml -}}
{{- $communications = $dataYaml.communications }}
{{- end }}
Expand Down

0 comments on commit bc62399

Please sign in to comment.