From 6d6b5b7664a4daeb577b2f54c0928731bc721c22 Mon Sep 17 00:00:00 2001 From: ianarsenault Date: Thu, 15 Aug 2024 16:21:14 -0400 Subject: [PATCH] charts/daemonse fix trailing whitespace for labels --- charts/daemonset/templates/cluster_role.yaml | 2 +- charts/daemonset/templates/cluster_role_binding.yaml | 2 +- charts/daemonset/templates/configmaps.yaml | 2 +- charts/daemonset/templates/daemonset.yaml | 4 ++-- charts/daemonset/templates/secrets.yaml | 2 +- charts/daemonset/templates/service.yaml | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/charts/daemonset/templates/cluster_role.yaml b/charts/daemonset/templates/cluster_role.yaml index c528130..e163a8a 100644 --- a/charts/daemonset/templates/cluster_role.yaml +++ b/charts/daemonset/templates/cluster_role.yaml @@ -4,7 +4,7 @@ kind: ClusterRole metadata: name: {{ include "app.fullname" . }} labels: - {{ include "snowplow.labels" $ | nindent 4 }} + {{- include "snowplow.labels" $ | nindent 4 }} rules: {{- toYaml $.Values.clusterrole.rules | nindent 2 }} --- diff --git a/charts/daemonset/templates/cluster_role_binding.yaml b/charts/daemonset/templates/cluster_role_binding.yaml index bf5a637..b9df012 100644 --- a/charts/daemonset/templates/cluster_role_binding.yaml +++ b/charts/daemonset/templates/cluster_role_binding.yaml @@ -4,7 +4,7 @@ kind: ClusterRoleBinding metadata: name: {{ include "app.fullname" . }} labels: - {{ include "snowplow.labels" $ | nindent 4 }} + {{- include "snowplow.labels" $ | nindent 4 }} roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole diff --git a/charts/daemonset/templates/configmaps.yaml b/charts/daemonset/templates/configmaps.yaml index f7b2a98..0d0291d 100644 --- a/charts/daemonset/templates/configmaps.yaml +++ b/charts/daemonset/templates/configmaps.yaml @@ -5,7 +5,7 @@ kind: ConfigMap metadata: name: {{ $v.name }} labels: - {{ include "snowplow.labels" $ | nindent 4 }} + {{- include "snowplow.labels" $ | nindent 4 }} binaryData: {{- range $f := $v.files }} {{- if $f.contentsB64 }} diff --git a/charts/daemonset/templates/daemonset.yaml b/charts/daemonset/templates/daemonset.yaml index 7c6d13f..a63bd76 100644 --- a/charts/daemonset/templates/daemonset.yaml +++ b/charts/daemonset/templates/daemonset.yaml @@ -3,7 +3,7 @@ kind: DaemonSet metadata: name: {{ include "app.fullname" . }} labels: - {{ include "snowplow.labels" $ | nindent 4 }} + {{- include "snowplow.labels" $ | nindent 4 }} spec: selector: matchLabels: @@ -11,7 +11,7 @@ spec: template: metadata: labels: - {{ include "snowplow.labels" $ | nindent 8 }} + {{- include "snowplow.labels" $ | nindent 8 }} app: {{ include "app.fullname" . }} {{- if eq .Values.global.cloud "azure" }} azure.workload.identity/use: "true" diff --git a/charts/daemonset/templates/secrets.yaml b/charts/daemonset/templates/secrets.yaml index a73cf24..68475d9 100644 --- a/charts/daemonset/templates/secrets.yaml +++ b/charts/daemonset/templates/secrets.yaml @@ -5,7 +5,7 @@ metadata: namespace: {{ .Release.Namespace }} name: {{ include "app.secret.fullname" . }} labels: - {{ include "snowplow.labels" $ | nindent 4 }} + {{- include "snowplow.labels" $ | nindent 4 }} type: Opaque data: {{- range $k, $v := .Values.config.secrets }} diff --git a/charts/daemonset/templates/service.yaml b/charts/daemonset/templates/service.yaml index 669707f..981259c 100644 --- a/charts/daemonset/templates/service.yaml +++ b/charts/daemonset/templates/service.yaml @@ -4,7 +4,7 @@ kind: Service metadata: name: {{ include "app.fullname" . }} labels: - {{ include "snowplow.labels" $ | nindent 4 }} + {{- include "snowplow.labels" $ | nindent 4 }} spec: type: {{ .Values.service.type }} selector: