From 19d683d712465d6ac263714a727ed4b9e47dd69a Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Sat, 26 Apr 2025 22:58:56 +0200 Subject: [PATCH] style: avoid control operator of toYaml --- .../configMapGrafanaDashboardPostgresExporter.yaml | 2 +- templates/prometheus-postgres-exporter/deployment.yaml | 2 +- templates/prometheus-postgres-exporter/ingress.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/prometheus-postgres-exporter/configMapGrafanaDashboardPostgresExporter.yaml b/templates/prometheus-postgres-exporter/configMapGrafanaDashboardPostgresExporter.yaml index d4e8e10..7c2b841 100644 --- a/templates/prometheus-postgres-exporter/configMapGrafanaDashboardPostgresExporter.yaml +++ b/templates/prometheus-postgres-exporter/configMapGrafanaDashboardPostgresExporter.yaml @@ -5,7 +5,7 @@ kind: ConfigMap metadata: {{- with (include "prometheus-postgres-exporter.configMap.grafanaDashboards.postgresExporter.annotations" . | fromYaml) }} annotations: - {{- tpl (. | toYaml) $ | nindent 4 }} + {{- tpl (toYaml .) $ | nindent 4 }} {{- end }} {{- with (include "prometheus-postgres-exporter.configMap.grafanaDashboards.postgresExporter.labels" . | fromYaml) }} labels: diff --git a/templates/prometheus-postgres-exporter/deployment.yaml b/templates/prometheus-postgres-exporter/deployment.yaml index 5b08c92..3287681 100644 --- a/templates/prometheus-postgres-exporter/deployment.yaml +++ b/templates/prometheus-postgres-exporter/deployment.yaml @@ -3,7 +3,7 @@ kind: Deployment metadata: {{- with (include "prometheus-postgres-exporter.deployment.annotations" . | fromYaml) }} annotations: - {{- tpl (. | toYaml) $ | nindent 4 }} + {{- tpl (toYaml .) $ | nindent 4 }} {{- end }} {{- with (include "prometheus-postgres-exporter.deployment.labels" . | fromYaml) }} labels: diff --git a/templates/prometheus-postgres-exporter/ingress.yaml b/templates/prometheus-postgres-exporter/ingress.yaml index d36bda4..9875d11 100644 --- a/templates/prometheus-postgres-exporter/ingress.yaml +++ b/templates/prometheus-postgres-exporter/ingress.yaml @@ -5,7 +5,7 @@ kind: Ingress metadata: {{- with (include "prometheus-postgres-exporter.ingress.annotations" . | fromYaml) }} annotations: - {{- tpl (. | toYaml) $ | nindent 4 }} + {{- tpl (toYaml .) $ | nindent 4 }} {{- end }} {{- with (include "prometheus-postgres-exporter.ingress.labels" . | fromYaml) }} labels: