diff --git a/prometheus/templates/server-configmap.yaml b/prometheus/templates/server-configmap.yaml index d7cb7b86845a4875572da5fb732b2ab68f72f015..104c7f73d84416d15fad6e701a9495077b787eaa 100644 --- a/prometheus/templates/server-configmap.yaml +++ b/prometheus/templates/server-configmap.yaml @@ -26,7 +26,7 @@ data: {{ $key | indent 0 }}: | groups: {{- range $path, $bytes := $root.Files.Glob "rules/*.yaml" }} - {{- $root.Files.Get $path | toYaml | trim | trimAll "|" | indent 2 }} + {{- $root.Files.Get $path | trim | trimAll "|" | nindent 4 }} {{ end -}} {{- end -}} {{- end -}} @@ -34,22 +34,22 @@ data: {{- $scrapeConfigsKey := $root.Values.server.externalFiles.scrape_configs.confFile }} {{ $scrapeConfigsKey | indent 2 }}: {{- range $path, $bytes := $root.Files.Glob "scrape_configs/*.yaml" }} - {{- $root.Files.Get $path | toYaml | trim | trimAll "|" | indent 2 }} + {{- $root.Files.Get $path | trim | trimAll "|" | nindent 4 }} {{ end -}} {{- if contains "dev" $root.Values.nynja_env -}} {{- range $path, $bytes := $root.Files.Glob "scrape_configs/dev/*.yaml" }} - {{- $root.Files.Get $path | toYaml | trim | trimAll "|" | indent 2 }} + {{- $root.Files.Get $path | trim | trimAll "|" | nindent 4 }} {{ end -}} {{ end -}} {{- if contains "stg" $root.Values.nynja_env -}} {{- range $path, $bytes := $root.Files.Glob "scrape_configs/stg/*.yaml" }} - {{- $root.Files.Get $path | toYaml | trim | trimAll "|" | indent 2 }} + {{- $root.Files.Get $path | trim | trimAll "|" | nindent 4 }} {{ end -}} {{ end -}} {{- if contains "prd" $root.Values.nynja_env -}} {{- range $path, $bytes := $root.Files.Glob "scrape_configs/prd/*.yaml" }} - {{- $root.Files.Get $path | toYaml | trim | trimAll "|" | indent 2 }} + {{- $root.Files.Get $path | trim | trimAll "|" | nindent 4 }} {{ end -}} {{ end -}} {{- end -}}