Skip to content

Commit

Permalink
Updating the template to accomodate direct replacement of values from…
Browse files Browse the repository at this point in the history
… secrets in HelmReleases
  • Loading branch information
dharapvj committed Jan 17, 2024
1 parent 350040e commit 70a2552
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/alerta/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ apiVersion: v1
appVersion: "8.7.0"
description: A Helm chart for Kubernetes
name: alerta
version: 0.4.1
version: 0.4.2
5 changes: 5 additions & 0 deletions charts/alerta/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@ data:
alertad.conf: |
{{- if .Values.alertaConfig }}
{{ range $key, $value := .Values.alertaConfig }}
{{- /* The Python configuration file format is crazy. It needs single quote for all values, except boolean, number AND arrays! */}}
{{- if or (eq $value "True") (eq $value "False") (gt (int $value) 0 ) ( and (hasPrefix "[" $value ) (hasSuffix "]" $value ) ) }}
{{ $key }} = {{ $value | nindent 4 | trim }}
{{- else }}
{{ $key }} = '{{ $value | nindent 4 | trim }}'
{{- end }}
{{- end }}
{{- end }}
{{ if .Values.postgresql.enabled -}}
Expand Down

0 comments on commit 70a2552

Please sign in to comment.