From 5d2edb708455aa268fe2822624583213fd3200f7 Mon Sep 17 00:00:00 2001 From: Erwan Vallienne <135604788+erwanval@users.noreply.github.com> Date: Wed, 28 Aug 2024 13:47:29 +0200 Subject: [PATCH] Fix indentation for deploy, ds and pod annotations (#187) Signed-off-by: Erwan Vallienne --- charts/crowdsec/templates/agent-daemonSet.yaml | 6 +++--- charts/crowdsec/templates/lapi-deployment.yaml | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/charts/crowdsec/templates/agent-daemonSet.yaml b/charts/crowdsec/templates/agent-daemonSet.yaml index 77739cb..cf8d287 100644 --- a/charts/crowdsec/templates/agent-daemonSet.yaml +++ b/charts/crowdsec/templates/agent-daemonSet.yaml @@ -11,7 +11,7 @@ metadata: version: v1 {{- if .Values.agent.daemonsetAnnotations }} annotations: - {{ toYaml .Values.agent.daemonsetAnnotations | trim | indent 4 }} +{{ toYaml .Values.agent.daemonsetAnnotations | trim | indent 4 }} {{- end }} spec: selector: @@ -25,10 +25,10 @@ spec: checksum/agent-configmap: {{ include (print $.Template.BasePath "/agent-configmap.yaml") . | sha256sum }} checksum/acquis-configmap: {{ include (print $.Template.BasePath "/acquis-configmap.yaml") . | sha256sum }} {{- if .Values.podAnnotations }} - {{- toYaml .Values.podAnnotations | trim | indent 8 }} +{{ toYaml .Values.podAnnotations | trim | indent 8 }} {{- end }} {{- if .Values.agent.podAnnotations }} - {{- toYaml .Values.agent.podAnnotations | trim | indent 8 }} +{{ toYaml .Values.agent.podAnnotations | trim | indent 8 }} {{- end }} labels: k8s-app: {{ .Release.Name }} diff --git a/charts/crowdsec/templates/lapi-deployment.yaml b/charts/crowdsec/templates/lapi-deployment.yaml index f3ae93c..5458894 100644 --- a/charts/crowdsec/templates/lapi-deployment.yaml +++ b/charts/crowdsec/templates/lapi-deployment.yaml @@ -11,7 +11,7 @@ metadata: version: v1 {{- if .Values.lapi.deployAnnotations }} annotations: - {{ toYaml .Values.lapi.deployAnnotations | trim | indent 4 }} +{{ toYaml .Values.lapi.deployAnnotations | trim | indent 4 }} {{- end }} spec: replicas: {{ .Values.lapi.replicas }} @@ -27,10 +27,10 @@ spec: checksum/lapi-secret: {{ include (print $.Template.BasePath "/lapi-secrets.yaml") . | sha256sum }} checksum/lapi-configmap: {{ include (print $.Template.BasePath "/lapi-configmap.yaml") . | sha256sum }} {{- if .Values.podAnnotations }} - {{- toYaml .Values.podAnnotations | trim | indent 8 }} +{{ toYaml .Values.podAnnotations | trim | indent 8 }} {{- end }} {{- if .Values.lapi.podAnnotations }} - {{- toYaml .Values.lapi.podAnnotations | trim | indent 8 }} +{{ toYaml .Values.lapi.podAnnotations | trim | indent 8 }} {{- end }} labels: k8s-app: {{ .Release.Name }}