fix: guard lifecycle prefixes
This commit is contained in:
@@ -1,4 +1,10 @@
|
|||||||
{{- if and .Values.jobs.applyLifecycle.enabled .Values.minio.enabled -}}
|
{{- if and .Values.jobs.applyLifecycle.enabled .Values.minio.enabled -}}
|
||||||
|
{{- if or (eq .Values.jobs.applyLifecycle.prefixes.thumbs "") (eq .Values.jobs.applyLifecycle.prefixes.derived "") -}}
|
||||||
|
{{- fail "applyLifecycle prefixes must be non-empty" -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- if or (eq .Values.jobs.applyLifecycle.prefixes.thumbs "originals/") (eq .Values.jobs.applyLifecycle.prefixes.derived "originals/") -}}
|
||||||
|
{{- fail "applyLifecycle prefixes must not target originals/" -}}
|
||||||
|
{{- end -}}
|
||||||
apiVersion: batch/v1
|
apiVersion: batch/v1
|
||||||
kind: Job
|
kind: Job
|
||||||
metadata:
|
metadata:
|
||||||
|
|||||||
Reference in New Issue
Block a user