From 1a15b281131e77160f244155ef2768a946c0a439 Mon Sep 17 00:00:00 2001 From: Jordan Hoeft Date: Tue, 6 Feb 2024 14:08:14 -0600 Subject: [PATCH] fail better --- charts/tsm-node/templates/deployment.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" . }}