peertube: Fix chart lint
This commit is contained in:
parent
20514d5d2a
commit
8c203b7988
1 changed files with 11 additions and 11 deletions
|
@ -12,6 +12,16 @@ spec:
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
{{- include "peertube.selectorLabels" . | nindent 6 }}
|
{{- include "peertube.selectorLabels" . | nindent 6 }}
|
||||||
|
strategy:
|
||||||
|
{{- if .Values.strategy }}
|
||||||
|
{{- toYaml .Values.strategy | nindent 10 }}
|
||||||
|
{{- else }}
|
||||||
|
{{- if has "ReadWriteOnce" (.Values.config.persistence.accessModes | default (list "ReadWriteOnce")) }}
|
||||||
|
type: Recreate
|
||||||
|
{{- else }}
|
||||||
|
type: RollingUpdate
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
|
@ -22,16 +32,6 @@ spec:
|
||||||
{{- end }}
|
{{- end }}
|
||||||
labels:
|
labels:
|
||||||
{{- include "peertube.selectorLabels" . | nindent 8 }}
|
{{- include "peertube.selectorLabels" . | nindent 8 }}
|
||||||
strategy:
|
|
||||||
{{- if .Values.strategy }}
|
|
||||||
{{- toYaml .Values.strategy | nindent 10 }}
|
|
||||||
{{- else }}
|
|
||||||
{{- if has "ReadWriteOnce" (.Values.config.persistence.accessModes | default (list "ReadWriteOnce")) }}
|
|
||||||
type: Recreate
|
|
||||||
{{- else }}
|
|
||||||
type: RollingUpdate
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
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" }}
|
||||||
|
|
Loading…
Reference in a new issue