Skip to content

Commit d44ac1d

Browse files
Copilotbdehamer
andauthored
Add template-time validation for mutually exclusive namespace flags
Co-authored-by: bdehamer <398027+bdehamer@users.noreply.github.com> Agent-Logs-Url: https://github.com/github/deployment-tracker/sessions/ab6214f1-4681-454f-b5de-7d0caa1a9cc9
1 parent 3b35e8a commit d44ac1d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

deploy/charts/deployment-tracker/templates/deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
{{- if and .Values.config.namespace .Values.config.excludeNamespaces }}
2+
{{- fail "config.namespace and config.excludeNamespaces are mutually exclusive and cannot both be set" }}
3+
{{- end }}
14
apiVersion: apps/v1
25
kind: Deployment
36
metadata:

0 commit comments

Comments
 (0)