@@ -29,80 +29,44 @@ spec:
29
29
fieldRef :
30
30
fieldPath : metadata.namespace
31
31
- name : CSDP_URL
32
- valueFrom :
33
- secretKeyRef :
34
- name : csdp-installer
35
- key : csdp.url
32
+ value : {{ .Values.csdpInstaller.platform.url | quote }}
36
33
- name : CSDP_TOKEN
37
34
valueFrom :
38
35
secretKeyRef :
39
- name : csdp-installer
40
- key : csdp.token
36
+ {{ .Values.csdpInstaller.platform.token.secretKeyRef | toYaml | indent 18 }}
41
37
- 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 }}
52
39
- name : CSDP_RUNTIME_REPO
53
- valueFrom :
54
- secretKeyRef :
55
- name : csdp-installer
56
- key : runtime.repo
40
+ value : {{ .Values.csdpInstaller.runtime.repo | quote }}
57
41
- name : CSDP_RUNTIME_GIT_TOKEN
58
42
valueFrom :
59
43
secretKeyRef :
60
- name : csdp-installer
61
- key : runtime.gitToken
44
+ {{ .Values.csdpInstaller.runtime.gitToken.secretKeyRef | toYaml | indent 18 }}
62
45
- name : CSDP_RUNTIME_CLUSTER
63
- valueFrom :
64
- secretKeyRef :
65
- name : csdp-installer
66
- key : runtime.cluster
46
+ value : {{ .Values.csdpInstaller.runtime.cluster | quote }}
67
47
- name : CSDP_RUNTIME_INGRESS_URL
68
- valueFrom :
69
- secretKeyRef :
70
- name : csdp-installer
71
- key : runtime.ingressURL
48
+ value : {{ .Values.csdpInstaller.runtime.ingressURL | quote }}
72
49
- name : CSDP_INGRESS_CLASS_NAME
73
- valueFrom :
74
- secretKeyRef :
75
- name : csdp-installer
76
- key : runtime.ingressClass
50
+ value : {{ .Values.csdpInstaller.runtime.ingressClass | quote }}
77
51
- name : CSDP_INGRESS_CONTROLLER
78
- valueFrom :
79
- secretKeyRef :
80
- name : csdp-installer
81
- key : runtime.ingressController
52
+ value : {{ .Values.csdpInstaller.runtime.ingressController | quote }}
82
53
- 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 }}
88
59
- 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 }}
94
61
- 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 }}
100
64
- name : CSDP_GIT_INTEGRATION_TOKEN
101
65
valueFrom :
102
66
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}}
106
70
resources :
107
71
{{- toYaml .Values.csdpInstaller.installer.resources | nindent 12 }}
108
72
{{ end }}
0 commit comments