From b0584ec72478189d03a71cb846c4f787891de593 Mon Sep 17 00:00:00 2001 From: ianarsenault Date: Thu, 15 Aug 2024 16:30:48 -0400 Subject: [PATCH] charts/snowplow-iglu-server fix trailing whitepsace on labels --- charts/snowplow-iglu-server/templates/certificate.yaml | 2 +- .../templates/cloudsqlproxy-deployment.yaml | 4 ++-- .../snowplow-iglu-server/templates/cloudsqlproxy-service.yaml | 2 +- charts/snowplow-iglu-server/templates/iglu-deployment.yaml | 4 ++-- .../snowplow-iglu-server/templates/iglu-hoconconfigmap.yaml | 2 +- charts/snowplow-iglu-server/templates/iglu-hooks.yaml | 2 +- charts/snowplow-iglu-server/templates/iglu-hpa.yaml | 2 +- charts/snowplow-iglu-server/templates/iglu-ingress.yaml | 2 +- charts/snowplow-iglu-server/templates/iglu-ipallowlist.yaml | 2 +- charts/snowplow-iglu-server/templates/iglu-secret.yaml | 2 +- charts/snowplow-iglu-server/templates/iglu-service.yaml | 2 +- .../templates/iglu-targetgroupbinding.yaml | 2 +- 12 files changed, 14 insertions(+), 14 deletions(-) diff --git a/charts/snowplow-iglu-server/templates/certificate.yaml b/charts/snowplow-iglu-server/templates/certificate.yaml index 3afb77e..69bf969 100644 --- a/charts/snowplow-iglu-server/templates/certificate.yaml +++ b/charts/snowplow-iglu-server/templates/certificate.yaml @@ -6,7 +6,7 @@ kind: Certificate metadata: name: {{ required "A valid hostname is required!" .hostname }} labels: - {{ include "snowplow.labels" $ | nindent 4 }} + {{- include "snowplow.labels" $ | nindent 4 }} spec: secretName: {{ .hostname }}-tls issuerRef: diff --git a/charts/snowplow-iglu-server/templates/cloudsqlproxy-deployment.yaml b/charts/snowplow-iglu-server/templates/cloudsqlproxy-deployment.yaml index f388e12..8274c0a 100644 --- a/charts/snowplow-iglu-server/templates/cloudsqlproxy-deployment.yaml +++ b/charts/snowplow-iglu-server/templates/cloudsqlproxy-deployment.yaml @@ -4,16 +4,16 @@ kind: Deployment metadata: name: {{ include "iglu.cloudsqlproxy.name" . }} labels: - {{ include "snowplow.labels" $ | nindent 4 }} + {{- include "snowplow.labels" $ | nindent 4 }} spec: selector: matchLabels: app: {{ include "iglu.cloudsqlproxy.name" . }} - {{ include "snowplow.labels" $ | nindent 8 }} template: metadata: labels: app: {{ include "iglu.cloudsqlproxy.name" . }} + {{- include "snowplow.labels" $ | nindent 8 }} spec: {{- if .Values.cloudserviceaccount.deploy }} serviceAccountName: {{ .Values.cloudserviceaccount.name }} diff --git a/charts/snowplow-iglu-server/templates/cloudsqlproxy-service.yaml b/charts/snowplow-iglu-server/templates/cloudsqlproxy-service.yaml index 5bd0162..34c0c76 100644 --- a/charts/snowplow-iglu-server/templates/cloudsqlproxy-service.yaml +++ b/charts/snowplow-iglu-server/templates/cloudsqlproxy-service.yaml @@ -4,7 +4,7 @@ kind: Service metadata: name: {{ include "iglu.cloudsqlproxy.name" . }} labels: - {{ include "snowplow.labels" $ | nindent 4 }} + {{- include "snowplow.labels" $ | nindent 4 }} spec: type: NodePort selector: diff --git a/charts/snowplow-iglu-server/templates/iglu-deployment.yaml b/charts/snowplow-iglu-server/templates/iglu-deployment.yaml index 732be31..2d5bd15 100644 --- a/charts/snowplow-iglu-server/templates/iglu-deployment.yaml +++ b/charts/snowplow-iglu-server/templates/iglu-deployment.yaml @@ -3,7 +3,7 @@ kind: Deployment metadata: name: {{ include "iglu.app.name" . }} labels: - {{ include "snowplow.labels" $ | nindent 4 }} + {{- include "snowplow.labels" $ | nindent 4 }} spec: selector: matchLabels: @@ -12,7 +12,7 @@ spec: metadata: labels: app: {{ include "iglu.app.name" . }} - {{ include "snowplow.labels" $ | nindent 8 }} + {{- include "snowplow.labels" $ | nindent 8 }} annotations: checksum/config: "{{ include "iglu.service.config.checksum" . }}" {{- if ne .Values.service.config.hoconBase64 "" }} diff --git a/charts/snowplow-iglu-server/templates/iglu-hoconconfigmap.yaml b/charts/snowplow-iglu-server/templates/iglu-hoconconfigmap.yaml index eb23b56..cbff870 100644 --- a/charts/snowplow-iglu-server/templates/iglu-hoconconfigmap.yaml +++ b/charts/snowplow-iglu-server/templates/iglu-hoconconfigmap.yaml @@ -4,7 +4,7 @@ kind: ConfigMap metadata: name: {{ include "iglu.app.config.name" . }} labels: - {{ include "snowplow.labels" $ | nindent 4 }} + {{- include "snowplow.labels" $ | nindent 4 }} binaryData: config.hocon: {{ .Values.service.config.hoconBase64 }} {{- end }} diff --git a/charts/snowplow-iglu-server/templates/iglu-hooks.yaml b/charts/snowplow-iglu-server/templates/iglu-hooks.yaml index 54218c9..859dd5e 100644 --- a/charts/snowplow-iglu-server/templates/iglu-hooks.yaml +++ b/charts/snowplow-iglu-server/templates/iglu-hooks.yaml @@ -5,7 +5,7 @@ kind: Job metadata: name: {{ include "iglu.hooks.name" . }} labels: - {{ include "snowplow.labels" $ | nindent 4 }} + {{- include "snowplow.labels" $ | nindent 4 }} annotations: "helm.sh/hook": post-install,post-upgrade "helm.sh/hook-delete-policy": hook-succeeded,hook-failed diff --git a/charts/snowplow-iglu-server/templates/iglu-hpa.yaml b/charts/snowplow-iglu-server/templates/iglu-hpa.yaml index 64358fe..a038449 100644 --- a/charts/snowplow-iglu-server/templates/iglu-hpa.yaml +++ b/charts/snowplow-iglu-server/templates/iglu-hpa.yaml @@ -3,7 +3,7 @@ kind: HorizontalPodAutoscaler metadata: name: {{ include "iglu.app.name" . }} labels: - {{ include "snowplow.labels" $ | nindent 4 }} + {{- include "snowplow.labels" $ | nindent 4 }} spec: scaleTargetRef: apiVersion: apps/v1 diff --git a/charts/snowplow-iglu-server/templates/iglu-ingress.yaml b/charts/snowplow-iglu-server/templates/iglu-ingress.yaml index 649cb64..0d1b081 100644 --- a/charts/snowplow-iglu-server/templates/iglu-ingress.yaml +++ b/charts/snowplow-iglu-server/templates/iglu-ingress.yaml @@ -5,7 +5,7 @@ kind: Ingress metadata: name: {{ include "iglu.app.name" $ }} labels: - {{ include "snowplow.labels" $ | nindent 4 }} + {{- include "snowplow.labels" $ | nindent 4 }} annotations: {{- if .annotations }} {{- toYaml .annotations | nindent 4 }} diff --git a/charts/snowplow-iglu-server/templates/iglu-ipallowlist.yaml b/charts/snowplow-iglu-server/templates/iglu-ipallowlist.yaml index 18cfd7c..f53fd91 100644 --- a/charts/snowplow-iglu-server/templates/iglu-ipallowlist.yaml +++ b/charts/snowplow-iglu-server/templates/iglu-ipallowlist.yaml @@ -4,7 +4,7 @@ kind: Middleware metadata: name: {{ include "iglu.app.name" . }}-ipallowlist labels: - {{ include "snowplow.labels" $ | nindent 4 }} + {{- include "snowplow.labels" $ | nindent 4 }} spec: ipWhiteList: sourceRange: diff --git a/charts/snowplow-iglu-server/templates/iglu-secret.yaml b/charts/snowplow-iglu-server/templates/iglu-secret.yaml index 3fdef15..f839324 100644 --- a/charts/snowplow-iglu-server/templates/iglu-secret.yaml +++ b/charts/snowplow-iglu-server/templates/iglu-secret.yaml @@ -4,7 +4,7 @@ metadata: namespace: {{ .Release.Namespace }} name: {{ include "iglu.app.secret.name" . }} labels: - {{ include "snowplow.labels" $ | nindent 4 }} + {{- include "snowplow.labels" $ | nindent 4 }} type: Opaque data: CONFIG_FORCE_iglu_superApiKey: "{{ include "iglu.service.config.superApiKey" . | b64enc }}" diff --git a/charts/snowplow-iglu-server/templates/iglu-service.yaml b/charts/snowplow-iglu-server/templates/iglu-service.yaml index 08552d5..43be89a 100644 --- a/charts/snowplow-iglu-server/templates/iglu-service.yaml +++ b/charts/snowplow-iglu-server/templates/iglu-service.yaml @@ -3,7 +3,7 @@ kind: Service metadata: name: {{ include "iglu.app.name" . }} labels: - {{ include "snowplow.labels" $ | nindent 4 }} + {{- include "snowplow.labels" $ | nindent 4 }} annotations: {{- if .Values.service.annotations }} {{- toYaml .Values.service.annotations | nindent 4 }} diff --git a/charts/snowplow-iglu-server/templates/iglu-targetgroupbinding.yaml b/charts/snowplow-iglu-server/templates/iglu-targetgroupbinding.yaml index 64b1896..c23f087 100644 --- a/charts/snowplow-iglu-server/templates/iglu-targetgroupbinding.yaml +++ b/charts/snowplow-iglu-server/templates/iglu-targetgroupbinding.yaml @@ -4,7 +4,7 @@ kind: TargetGroupBinding metadata: name: {{ include "iglu.app.name" . }} labels: - {{ include "snowplow.labels" $ | nindent 4 }} + {{- include "snowplow.labels" $ | nindent 4 }} spec: serviceRef: name: {{ include "iglu.app.name" . }}