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 .Values.mastodon.createAdmin.enabled }}
{{- if .Values.mastodon.createAdmin.enabled -}}
apiVersion: batch/v1
kind: Job
metadata:
@ -13,10 +13,10 @@ spec:
template:
metadata:
name: {{ include "mastodon.fullname" . }}-create-admin
{{- with .Values.jobAnnotations }}
{{- with .Values.jobAnnotations }}
annotations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
spec:
restartPolicy: Never
{{- if (not .Values.mastodon.s3.enabled) }}