Skip to content

The Unified and Autonomous Development Platform

fix: Helm chart indent incorrect for extraVolumeMounts and extraVolumes (#1881)

Robin Shenef7993cccdc9
diff --git a/server-product/helm/templates/_pod.tpl b/server-product/helm/templates/_pod.tpl
index 2f10914643..e8d0cd29be 100644
--- a/server-product/helm/templates/_pod.tpl
+++ b/server-product/helm/templates/_pod.tpl
@@ -119,7 +119,7 @@ containers:
- name: trust-certs
mountPath: "/opt/onedev/conf/trust-certs"
{{- if .Values.extraVolumeMounts }}
-{{ toYaml .Values.extraVolumeMounts | indent 6 }}
+{{ toYaml .Values.extraVolumeMounts | indent 4 }}
{{- end }}
{{- if .Values.extraContainers }}
{{ toYaml .Values.extraContainers | indent 2 }}
@@ -143,6 +143,6 @@ volumes:
secretName: {{ .Values.onedev.trustCerts.secretName }}
optional: true
{{- if .Values.extraVolumes }}
-{{ toYaml .Values.extraVolumes | indent 2 }}
+{{ toYaml .Values.extraVolumes | indent 0 }}
{{- end }}
{{- end }}