diff --git a/charts/tsm-node/templates/deployment.yaml b/charts/tsm-node/templates/deployment.yaml index d60c229..4409349 100644 --- a/charts/tsm-node/templates/deployment.yaml +++ b/charts/tsm-node/templates/deployment.yaml @@ -71,7 +71,7 @@ spec: {{- if and .Values.config.configFile .Values.config.configSecretName }} # Fail the deployment by using a non-existent volume type # This is a way to signal an error due to mutual exclusivity violation - error: "Both configFile and configSecretName are set, which is not allowed. Please set only one." + {{- fail "config.configFile and config.configSecretName are mutually exclusive" }} {{- else if .Values.config.configFile }} configMap: name: {{ template "tsm-node.fullname" . }}