From 6dcac4c78f328d05f3acbc8adc4446e1cf8b3224 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?c=C4=83t=C4=83lin?= Date: Wed, 12 Aug 2026 09:00:44 +0200 Subject: [PATCH] Fix helm template whitespace issue in statefulset --- k8s/charts/oxicloud/templates/statefulset.yaml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/k8s/charts/oxicloud/templates/statefulset.yaml b/k8s/charts/oxicloud/templates/statefulset.yaml index 20f64e1..71526e8 100644 --- a/k8s/charts/oxicloud/templates/statefulset.yaml +++ b/k8s/charts/oxicloud/templates/statefulset.yaml @@ -31,12 +31,18 @@ spec: volumeMounts: - name: oxicloud-data mountPath: /app/storage + {{- with .Values.oxicloud.resources }} resources: - {{- toYaml .Values.oxicloud.resources | nindent 10 }} + {{- toYaml . | nindent 12 }} + {{- end }} + {{- with .Values.oxicloud.livenessProbe }} livenessProbe: - {{- toYaml .Values.oxicloud.livenessProbe | nindent 10 }} + {{- toYaml . | nindent 12 }} + {{- end }} + {{- with .Values.oxicloud.readinessProbe }} readinessProbe: - {{- toYaml .Values.oxicloud.readinessProbe | nindent 10 }} + {{- toYaml . | nindent 12 }} + {{- end }} {{- if not .Values.oxicloud.persistence.enabled }} volumes: - name: oxicloud-data