File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -61,18 +61,21 @@ Create chart name and version as used by the chart label.
6161{{- else if .Values.castai.clusterID }}
6262- name: CLUSTER_ID
6363 value: {{ .Values.castai.clusterID | quote }}
64+ valueFrom: null # workaround for https://github.com /helm/helm/issues/8994
6465{{- else if .Values.castai.clusterIdConfigMapKeyRef.name }}
6566- name: CLUSTER_ID
6667 valueFrom:
6768 configMapKeyRef:
6869 name: {{ .Values.castai.clusterIdConfigMapKeyRef.name }}
6970 key: {{ .Values.castai.clusterIdConfigMapKeyRef.key }}
71+ value: null # workaround for https://github.com /helm/helm/issues/8994
7072{{- else if .Values.castai.clusterIdSecretKeyRef.name }}
7173- name: CLUSTER_ID
7274 valueFrom:
7375 secretKeyRef:
7476 name: {{ .Values.castai.clusterIdSecretKeyRef.name }}
7577 key: {{ .Values.castai.clusterIdSecretKeyRef.key }}
78+ value: null # workaround for https://github.com /helm/helm/issues/8994
7679{{- else if not $envFrom }}
7780 {{- fail " castai.clusterID, castai.clusterIdConfigMapKeyRef or castai.clusterIdSecretKeyRef must be provided" }}
7881{{- end }}
Original file line number Diff line number Diff line change @@ -13,13 +13,15 @@ tests:
1313 content :
1414 name : CLUSTER_ID
1515 value : " test-cluster-id"
16+ valueFrom : null
1617 template : agent.yaml
1718 documentIndex : 0
1819 - contains :
1920 path : spec.template.spec.containers[0].env
2021 content :
2122 name : CLUSTER_ID
2223 value : " test-cluster-id"
24+ valueFrom : null
2325 template : controller.yaml
2426 documentIndex : 0
2527
3840 configMapKeyRef :
3941 name : " cluster-config"
4042 key : " CLUSTER_ID"
43+ value : null
4144 template : agent.yaml
4245 documentIndex : 0
4346 - contains :
4851 configMapKeyRef :
4952 name : " cluster-config"
5053 key : " CLUSTER_ID"
54+ value : null
5155 template : controller.yaml
5256 documentIndex : 0
5357
6670 secretKeyRef :
6771 name : " cluster-secret"
6872 key : " CLUSTER_ID"
73+ value : null
6974 template : agent.yaml
7075 documentIndex : 0
7176 - contains :
7681 secretKeyRef :
7782 name : " cluster-secret"
7883 key : " CLUSTER_ID"
84+ value : null
7985 template : controller.yaml
8086 documentIndex : 0
8187
@@ -94,6 +100,7 @@ tests:
94100 configMapKeyRef :
95101 name : " my-config"
96102 key : " MY_CUSTOM_KEY"
103+ value : null
97104 template : agent.yaml
98105 documentIndex : 0
99106
@@ -135,6 +142,7 @@ tests:
135142 configMapKeyRef :
136143 name : " cluster-config"
137144 key : " CONFIG_KEY"
145+ value : null
138146 template : agent.yaml
139147 documentIndex : 0
140148 - notContains :
@@ -145,5 +153,6 @@ tests:
145153 secretKeyRef :
146154 name : " cluster-secret"
147155 key : " SECRET_KEY"
156+ value : null
148157 template : agent.yaml
149158 documentIndex : 0
You can’t perform that action at this time.
0 commit comments