Skip to content

Commit

Permalink
fail better
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan Hoeft committed Feb 6, 2024
1 parent ba3cff0 commit 1a15b28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion charts/tsm-node/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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" . }}
Expand Down

0 comments on commit 1a15b28

Please sign in to comment.