
Co-authored-by: dementhorr <dementhorr@proton.me> Co-authored-by: Vince Montalbano <vince.montalbano@gmail.com> Reviewed-on: https://gitea.com/gitea/helm-chart/pulls/666 Reviewed-by: justusbunsi <justusbunsi@noreply.gitea.com> Co-authored-by: vjm <vjm@noreply.gitea.com> Co-committed-by: vjm <vjm@noreply.gitea.com>
16 lines
893 B
YAML
16 lines
893 B
YAML
{{- if .Values.actions.enabled -}}
|
|
{{- if .Values.actions.provisioning.enabled -}}
|
|
{{- if not (and .Values.persistence.enabled .Values.persistence.mount) -}}
|
|
{{- fail "persistence.enabled and persistence.mount are required when provisioning is enabled" -}}
|
|
{{- end -}}
|
|
{{- if and .Values.persistence.enabled .Values.persistence.mount -}}
|
|
{{- if .Values.actions.existingSecret -}}
|
|
{{- fail "Can't specify both actions.provisioning.enabled and actions.existingSecret" -}}
|
|
{{- end -}}
|
|
{{- end -}}
|
|
{{- end -}}
|
|
{{- if and (not .Values.actions.provisioning.enabled) (or (empty .Values.actions.existingSecret) (empty .Values.actions.existingSecretKey)) -}}
|
|
{{- fail "actions.existingSecret and actions.existingSecretKey are required when provisioning is disabled" -}}
|
|
{{- end -}}
|
|
{{- end -}}
|