Skip to content

Commit 3ed5e00

Browse files
Copilotbdehamer
andauthored
Add Helm template validation for mutually exclusive namespace flags (#65)
* Initial plan * 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 --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: bdehamer <398027+bdehamer@users.noreply.github.com>
1 parent 1bdd11c commit 3ed5e00

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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)