@@ -29,80 +29,44 @@ spec:
2929 fieldRef :
3030 fieldPath : metadata.namespace
3131 - name : CSDP_URL
32- valueFrom :
33- secretKeyRef :
34- name : csdp-installer
35- key : csdp.url
32+ value : {{ .Values.csdpInstaller.platform.url | quote }}
3633 - name : CSDP_TOKEN
3734 valueFrom :
3835 secretKeyRef :
39- name : csdp-installer
40- key : csdp.token
36+ {{ .Values.csdpInstaller.platform.token.secretKeyRef | toYaml | indent 18 }}
4137 - name : CSDP_RUNTIME_NAME
42- valueFrom :
43- secretKeyRef :
44- name : csdp-installer
45- key : runtime.name
46- - name : CSDP_RUNTIME_VERSION
47- valueFrom :
48- secretKeyRef :
49- name : csdp-installer
50- key : runtime.version
51- optional : true
38+ value : {{ .Values.csdpInstaller.runtime.name | quote }}
5239 - name : CSDP_RUNTIME_REPO
53- valueFrom :
54- secretKeyRef :
55- name : csdp-installer
56- key : runtime.repo
40+ value : {{ .Values.csdpInstaller.runtime.repo | quote }}
5741 - name : CSDP_RUNTIME_GIT_TOKEN
5842 valueFrom :
5943 secretKeyRef :
60- name : csdp-installer
61- key : runtime.gitToken
44+ {{ .Values.csdpInstaller.runtime.gitToken.secretKeyRef | toYaml | indent 18 }}
6245 - name : CSDP_RUNTIME_CLUSTER
63- valueFrom :
64- secretKeyRef :
65- name : csdp-installer
66- key : runtime.cluster
46+ value : {{ .Values.csdpInstaller.runtime.cluster | quote }}
6747 - name : CSDP_RUNTIME_INGRESS_URL
68- valueFrom :
69- secretKeyRef :
70- name : csdp-installer
71- key : runtime.ingressURL
48+ value : {{ .Values.csdpInstaller.runtime.ingressURL | quote }}
7249 - name : CSDP_INGRESS_CLASS_NAME
73- valueFrom :
74- secretKeyRef :
75- name : csdp-installer
76- key : runtime.ingressClass
50+ value : {{ .Values.csdpInstaller.runtime.ingressClass | quote }}
7751 - name : CSDP_INGRESS_CONTROLLER
78- valueFrom :
79- secretKeyRef :
80- name : csdp-installer
81- key : runtime.ingressController
52+ value : {{ .Values.csdpInstaller.runtime.ingressController | quote }}
8253 - name : CSDP_MANAGED_RUNTIME
83- valueFrom :
84- secretKeyRef :
85- name : csdp-installer
86- key : runtime.managed
87- optional : true
54+ value : {{ .Values.csdpInstaller.runtime.managed | quote }}
55+ {{- if .Values.csdpInstaller.runtime.gitIntegration }}
56+ {{- if eq .Values.csdpInstaller.runtime.managed true }}
57+ {{ fail "git integration parameters are not allowed when ' runtime.managed' is true!"}}
58+ {{- end }}
8859 - name : CSDP_GIT_INTEGRATION_PROVIDER
89- valueFrom :
90- secretKeyRef :
91- name : csdp-installer
92- key : gitIntegration.provider
93- optional : true
60+ value : {{ .Values.csdpInstaller.runtime.gitIntegration.provider }}
9461 - name : CSDP_GIT_INTEGRATION_API_URL
95- valueFrom :
96- secretKeyRef :
97- name : csdp-installer
98- key : gitIntegration.apiURL
99- optional : true
62+ value : {{ .Values.csdpInstaller.runtime.gitIntegration.apiURL }}
63+ {{- if .Values.csdpInstaller.runtime.gitIntegration.token }}
10064 - name : CSDP_GIT_INTEGRATION_TOKEN
10165 valueFrom :
10266 secretKeyRef :
103- name : csdp-installer
104- key : gitIntegration.token
105- optional : true
67+ {{ .Values.csdpInstaller.runtime.gitIntegration.token.secretKeyRef | toYaml | indent 18 }}
68+ {{- end}}
69+ {{- end}}
10670 resources :
10771 {{- toYaml .Values.csdpInstaller.installer.resources | nindent 12 }}
10872{{ end }}
0 commit comments