Skip to content

Commit

Permalink
<index $secret.data "comm_config.yaml">: error calling index: index o…
Browse files Browse the repository at this point in the history
…f untyped nil
  • Loading branch information
voriol authored and pkosiec committed Feb 13, 2024
1 parent 2e1a39d commit dff0479
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 dff0479

Please sign in to comment.