peertube: Fix chart lint

This commit is contained in:
Alexander Olofsson 2022-07-12 14:34:37 +02:00
parent 20514d5d2a
commit 8c203b7988
No known key found for this signature in database
GPG key ID: D439C9470CB04C73

View file

@ -12,16 +12,6 @@ spec:
selector: selector:
matchLabels: matchLabels:
{{- include "peertube.selectorLabels" . | nindent 6 }} {{- include "peertube.selectorLabels" . | nindent 6 }}
template:
metadata:
annotations:
checksum/config: {{ include (print $.Template.BasePath "/configuration.yaml") . | sha256sum }}
checksum/secrets: {{ include (print $.Template.BasePath "/secrets.yaml") . | sha256sum }}
{{- with .Values.podAnnotations }}
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
{{- include "peertube.selectorLabels" . | nindent 8 }}
strategy: strategy:
{{- if .Values.strategy }} {{- if .Values.strategy }}
{{- toYaml .Values.strategy | nindent 10 }} {{- toYaml .Values.strategy | nindent 10 }}
@ -32,6 +22,16 @@ spec:
type: RollingUpdate type: RollingUpdate
{{- end }} {{- end }}
{{- end }} {{- end }}
template:
metadata:
annotations:
checksum/config: {{ include (print $.Template.BasePath "/configuration.yaml") . | sha256sum }}
checksum/secrets: {{ include (print $.Template.BasePath "/secrets.yaml") . | sha256sum }}
{{- with .Values.podAnnotations }}
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
{{- include "peertube.selectorLabels" . | nindent 8 }}
spec: spec:
{{- with .Values.imagePullSecrets }} {{- with .Values.imagePullSecrets }}
imagePullSecrets: imagePullSecrets:
@ -86,7 +86,7 @@ spec:
valueFrom: valueFrom:
secretKeyRef: secretKeyRef:
{{- if .Values.postgresql.enabled }} {{- if .Values.postgresql.enabled }}
key: {{ .Values.postgresql.auth.secretKeys.userPasswordKey | default "password" }} key: {{ (.Values.postgresql.auth.secretKeys | default dict).userPasswordKey | default "password" }}
name: {{ .Values.postgresql.auth.existingSecret | default (include "peertube.postgresql.fullname" .) }} name: {{ .Values.postgresql.auth.existingSecret | default (include "peertube.postgresql.fullname" .) }}
{{- else }} {{- else }}
key: {{ .Values.externalPostgresql.existingSecretKey | default "postgres-password" }} key: {{ .Values.externalPostgresql.existingSecretKey | default "postgres-password" }}