File tree Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,17 @@ Expand the name of the chart.
55{ {- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix " -" } }
66{ {- end } }
77
8+
9+ { {/*
10+ Mutual exclusion validation
11+ */} }
12+ { {- define " everest.validateInputs" -} }
13+ { {- if and .Values.pmm.enabled .Values.pmm3.enabled -} }
14+ { { fail " Only one of pmm.enabled or pmm3.enabled may be true. They are mutually exclusive." } }
15+ { {- end } }
16+ { {- end } }
17+
18+
819{ {/*
920Allows overriding the install namespace in combined charts.
1021*/} }
@@ -129,7 +140,3 @@ tls.crt: {{ $cert.Cert | b64enc }}
129140ca.crt: { { $ca .Cert | b64enc } }
130141{ {- end } }
131142{ {- end } }
132-
133- { {- if and .Values.pmm.enabled .Values.pmm3.enabled -} }
134- { { fail " Only one of pmm.enabled or pmm3.enabled may be true. They are mutually exclusive." } }
135- { {- end } }
Original file line number Diff line number Diff line change 1+ {{ include "everest.validateInputs" . }}
2+
13apiVersion : apps/v1
24kind : Deployment
35metadata :
You can’t perform that action at this time.
0 commit comments