diff --git a/charts/fsm/templates/cleanup-hook.yaml b/charts/fsm/templates/cleanup-hook.yaml index 1c2ec2236..75c379aeb 100644 --- a/charts/fsm/templates/cleanup-hook.yaml +++ b/charts/fsm/templates/cleanup-hook.yaml @@ -118,7 +118,7 @@ spec: kubectl delete svc fsm-egress-gateway -n '{{ include "fsm.namespace" . }}' --ignore-not-found; kubectl delete cm fsm-egress-gateway-pjs -n '{{ include "fsm.namespace" . }}' --ignore-not-found; resources: - {{ toYaml .Values.fsm.cleanup.resources | indent 12 }} + {{- toYaml .Values.fsm.cleanup.resources | nindent 12 }} {{- if .Values.fsm.imagePullSecrets }} imagePullSecrets: {{ toYaml .Values.fsm.imagePullSecrets | indent 8 }} diff --git a/charts/fsm/templates/preinstall-hook.yaml b/charts/fsm/templates/preinstall-hook.yaml index 17832a473..9d1ce9c41 100644 --- a/charts/fsm/templates/preinstall-hook.yaml +++ b/charts/fsm/templates/preinstall-hook.yaml @@ -73,7 +73,7 @@ spec: - --enforce-single-mesh={{ .Values.fsm.enforceSingleMesh }} - --namespace={{ include "fsm.namespace" . }} resources: - {{ toYaml .Values.fsm.preinstall.resources | indent 12 }} + {{- toYaml .Values.fsm.preinstall.resources | nindent 12 }} {{- if .Values.fsm.imagePullSecrets }} imagePullSecrets: {{ toYaml .Values.fsm.imagePullSecrets | indent 8 }}