cert-manager/deploy/charts/cert-manager/templates/_preflight.tpl
Jason Witkowski a6f665353f
feat: Add option to keep CRDs when helm chart is uninstalled
Signed-off-by: Jason Witkowski <jwitko1@gmail.com>
2024-02-15 10:49:35 +01:00

10 lines
315 B
Smarty

{{/* vim: set filetype=mustache: */}}
{{/*
Expand the name of the chart.
*/}}
{{- define "cert-manager.preflight" -}}
{{- if and (.Values.installCRDs) (or (.Values.crds.install) (.Values.crds.keep)) }}
{{- fail "ERROR: Cannot set both .Values.installCRDs and .Values.crds.install" }}
{{- end }}
{{- end -}}