File tree 3 files changed +6
-2
lines changed
3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -203,7 +203,11 @@ spec:
203
203
{{- if .Values.global.testWorkflows.globalTemplate.enabled }}
204
204
{{- if .Values.global.testWorkflows.globalTemplate.inline }}
205
205
- name : TESTKUBE_GLOBAL_WORKFLOW_TEMPLATE_INLINE
206
+ {{- if and .Values.global.testWorkflows.globalTemplate.spec (kindIs "map" .Values.global.testWorkflows.globalTemplate.spec) }}
206
207
value : {{ toJson .Values.global.testWorkflows.globalTemplate.spec | quote }}
208
+ {{- else }}
209
+ value : {{ toJson (fromYaml .Values.global.testWorkflows.globalTemplate.spec) | quote }}
210
+ {{- end }}
207
211
{{- else }}
208
212
- name : TESTKUBE_GLOBAL_WORKFLOW_TEMPLATE_NAME
209
213
value : " {{ .Values.global.testWorkflows.globalTemplate.name }}"
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ global:
40
40
external : false
41
41
inline : false
42
42
name : global-template
43
- spec : {}
43
+ spec : null
44
44
45
45
# ## @section Common parameters
46
46
# # Kubernetes version (using Helm capabilities if not set)
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ global:
65
65
# -- Should the global template sourced inline instead of CRD? (otherwise its resource is created from spec below)
66
66
inline : false
67
67
# -- Specification for the global template
68
- spec : {}
68
+ spec : null
69
69
# spec:
70
70
# pod:
71
71
# imagePullSecrets:
You can’t perform that action at this time.
0 commit comments