diff --git a/templates/_helpers.tpl b/templates/_helpers.tpl index 19d7fd7..3f22e53 100644 --- a/templates/_helpers.tpl +++ b/templates/_helpers.tpl @@ -45,7 +45,7 @@ Storage Class {{- define "gitea.actions.persistence.storageClass" -}} {{- $storageClass := default (tpl ( default "" .Values.global.storageClass) .) }} {{- if $storageClass }} - storageClassName: {{ $storageClass | quote }} +storageClassName: {{ $storageClass | quote }} {{- end }} {{- end -}} diff --git a/templates/statefulset.yaml b/templates/statefulset.yaml index 0b95363..e8cfa94 100644 --- a/templates/statefulset.yaml +++ b/templates/statefulset.yaml @@ -193,7 +193,7 @@ spec: name: data-act-runner spec: accessModes: [ "ReadWriteOnce" ] - {{- include "gitea.actions.persistence.storageClass" . | nindent 8 }} + {{- include "gitea.actions.persistence.storageClass" . | indent 8 }} resources: requests: storage: {{ .Values.statefulset.persistence.size }}