From 2f522db9871d68bd3be61ad2d6662832bebf0693 Mon Sep 17 00:00:00 2001 From: siyu77 <4055416+siyu77@users.noreply.github.com> Date: Sat, 7 Jun 2025 11:19:27 +0800 Subject: [PATCH] fix: correct indentation for extraEnv and volumeMounts using nindent Replaced `indent` with `nindent` in Helm templates for: - `extraEnv` variables - `volumeMounts` declarations Ensures proper YAML formatting by: 1. Starting blocks on new lines 2. Maintaining consistent 8-space indentation 3. Preventing indentation errors in generated manifests Signed-off-by: siyu77 <4055416+siyu77@users.noreply.github.com> --- charts/tei/templates/statefulset.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/tei/templates/statefulset.yaml b/charts/tei/templates/statefulset.yaml index 5e495635..deb4fe56 100644 --- a/charts/tei/templates/statefulset.yaml +++ b/charts/tei/templates/statefulset.yaml @@ -56,13 +56,13 @@ spec: {{- toYaml .Values.resources | nindent 12 }} {{- if .Values.extraEnv }} env: - {{ toYaml .Values.extraEnv | indent 8 }} + {{ toYaml .Values.extraEnv | nindent 8 }} {{- end }} volumeMounts: - name: data-volume mountPath: {{ .Values.persistence.mountPath }} {{- if .Values.volumeMounts }} - {{ toYaml .Values.volumeMounts | indent 8 }} + {{ toYaml .Values.volumeMounts | nindent 8 }} {{- end }} volumes: {{- if not .Values.persistence.enabled }}