helm: fix consistent indentation, chomping, and use of with (#19918)

This commit is contained in:
Erik Sundell 2022-11-10 23:24:39 +01:00 committed by GitHub
parent 86f6631d28
commit 302a58c22b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 61 additions and 43 deletions

View file

@ -1,4 +1,4 @@
{{- if (not .Values.mastodon.s3.enabled) }}
{{- if (not .Values.mastodon.s3.enabled) -}}
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
@ -8,7 +8,9 @@ metadata:
spec:
accessModes:
- {{ .Values.mastodon.persistence.system.accessMode }}
{{- with .Values.mastodon.persistence.assets.resources }}
resources:
{{- toYaml .Values.mastodon.persistence.assets.resources | nindent 4}}
{{- toYaml . | nindent 4 }}
{{- end }}
storageClassName: {{ .Values.mastodon.persistence.assets.storageClassName }}
{{- end }}