From 1f516cc69a4e48db44211fc6e86c75e09a40a1d8 Mon Sep 17 00:00:00 2001 From: Burak Sekili Date: Fri, 7 Jul 2023 15:49:53 +0300 Subject: [PATCH] Fix indentation issue Signed-off-by: Burak Sekili --- hack/helm/pre_helm.go | 8 ++++---- helm/templates/all.yaml | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/hack/helm/pre_helm.go b/hack/helm/pre_helm.go index e0f5e6da5..590e4b38a 100644 --- a/hack/helm/pre_helm.go +++ b/hack/helm/pre_helm.go @@ -132,12 +132,12 @@ const nodeSelectorTPL = `{{- if .Values.nodeSelector }} const extraVolume = `- name: CONTROLLER_MANAGER_EXTRA_VOLUME` -const extraVolumeTPL = ` {{ if .Values.extraVolumes }} - {{ toYaml .Values.extraVolumes | nindent 6 }} +const extraVolumeTPL = `{{ if .Values.extraVolumes }} + {{ toYaml .Values.extraVolumes | nindent 6 }} {{ end }}` const extraVolumeMounts = `- mountPath: CONTROLLER_MANAGER_EXTRA_VOLUMEMOUNTS` -const extraVolumeMountsTPL = ` {{ if .Values.extraVolumeMounts }} - {{ toYaml .Values.extraVolumeMounts | nindent 8 }} +const extraVolumeMountsTPL = `{{ if .Values.extraVolumeMounts }} + {{ toYaml .Values.extraVolumeMounts | nindent 8}} {{ end }}` diff --git a/helm/templates/all.yaml b/helm/templates/all.yaml index 66ef96b14..f36729ac7 100644 --- a/helm/templates/all.yaml +++ b/helm/templates/all.yaml @@ -459,8 +459,8 @@ spec: - mountPath: /tmp/k8s-webhook-server/serving-certs name: cert readOnly: true - {{ if .Values.extraVolumeMounts }} - {{ toYaml .Values.extraVolumeMounts | nindent 8 }} + {{ if .Values.extraVolumeMounts }} + {{ toYaml .Values.extraVolumeMounts | nindent 8}} {{ end }} - mountPath: /controller_manager_config.yaml name: manager-config @@ -494,8 +494,8 @@ spec: secret: defaultMode: 420 secretName: webhook-server-cert - {{ if .Values.extraVolumes }} - {{ toYaml .Values.extraVolumes | nindent 6 }} + {{ if .Values.extraVolumes }} + {{ toYaml .Values.extraVolumes | nindent 6 }} {{ end }} - configMap: name: {{ include "tyk-operator-helm.fullname" . }}-manager-config