Skip to content

Commit

Permalink
Ensure simple types are rendered before complex types (fixes influxda…
Browse files Browse the repository at this point in the history
  • Loading branch information
jminardi authored Nov 8, 2024
1 parent 8973e09 commit bb0f888
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions charts/telegraf/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,9 @@ app.kubernetes.io/instance: {{ .Release.Name }}
{{- if eq $tp "bool" }}
{{ $key }} = {{ $value }}
{{- end }}
{{- end }}
{{- range $key, $value := $config -}}
{{- $tp := typeOf $value -}}
{{- if eq $tp "[]interface {}" }}
{{- if eq (index $value 0 | typeOf) "map[string]interface {}" -}}
{{- range $b, $val := $value }}
Expand Down

0 comments on commit bb0f888

Please sign in to comment.