Skip to content

Commit

Permalink
fix: sync telegraf-ds to properly format output subtables (#505)
Browse files Browse the repository at this point in the history
fixes: #498
  • Loading branch information
powersj authored Sep 26, 2022
1 parent 14a3212 commit 23a99f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/telegraf-ds/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: telegraf-ds
version: 1.1.1
version: 1.1.2
appVersion: 1.23.3
deprecated: false
description: Telegraf is an agent written in Go for collecting, processing, aggregating, and writing metrics.
Expand Down
4 changes: 2 additions & 2 deletions charts/telegraf-ds/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ app.kubernetes.io/instance: {{ .Release.Name }}
{{- range $key, $value := $config -}}
{{- $tp := typeOf $value -}}
{{- if eq $tp "map[string]interface {}" }}
[[outputs.{{ $output }}.{{ $key }}]]
[outputs.{{ $output }}.{{ $key }}]
{{- range $k, $v := $value }}
{{- $tps := typeOf $v }}
{{- if eq $tps "string" }}
Expand Down Expand Up @@ -163,7 +163,7 @@ app.kubernetes.io/instance: {{ .Release.Name }}
]
{{- end }}
{{- if eq $tps "map[string]interface {}"}}
[[outputs.{{ $output }}.{{ $key }}.{{ $k }}]]
[outputs.{{ $output }}.{{ $key }}.{{ $k }}]
{{- range $foo, $bar := $v }}
{{ $foo }} = {{ $bar | quote }}
{{- end }}
Expand Down

0 comments on commit 23a99f4

Please sign in to comment.