@@ -101,6 +101,11 @@ spec:
101101 secretKeyRef :
102102 key : token
103103 name : codefresh-token
104+ {{- if or .Values.global.codefresh.tls.caCerts.secret.create .Values.global.codefresh.tls.caCerts.secretKeyRef }}
105+ {{- $key := .Values.global.codefresh.tls.caCerts.secret.create | ternary (default "ca-bundle.crt" .Values.global.codefresh.tls.caCerts.secret.key) .Values.global.codefresh.tls.caCerts.secretKeyRef.key }}
106+ - name : CODEFRESH_SSL_CERT_PATH
107+ value : /app/config/codefresh-tls-certs/{{ $key }}
108+ {{- end }}
104109 # todo: clean up
105110 - name : EVENT_REPORTER_INSECURE
106111 valueFrom :
@@ -218,7 +223,7 @@ spec:
218223 successThreshold : {{ .Values.eventReporter.readinessProbe.successThreshold }}
219224 failureThreshold : {{ .Values.eventReporter.readinessProbe.failureThreshold }}
220225 resources :
221- {{- toYaml .Values.eventReporter.resources | nindent 10 }}
226+ {{- toYaml .Values.eventReporter.resources | nindent 12 }}
222227 {{- with .Values.eventReporter.containerSecurityContext }}
223228 securityContext :
224229 {{- toYaml . | nindent 10 }}
@@ -227,6 +232,11 @@ spec:
227232 {{- with .Values.eventReporter.volumeMounts }}
228233 {{- toYaml . | nindent 8 }}
229234 {{- end }}
235+ {{- if or .Values.global.codefresh.tls.caCerts.secret.create .Values.global.codefresh.tls.caCerts.secretKeyRef}}
236+ - name : codefresh-tls-certs
237+ mountPath : /app/config/codefresh-tls-certs
238+ readOnly : true
239+ {{- end }}
230240 - name : argocd-repo-server-tls
231241 mountPath : /app/config/server/tls
232242 - mountPath : /tmp
@@ -265,6 +275,13 @@ spec:
265275 {{- with .Values.eventReporter.volumes }}
266276 {{- toYaml . | nindent 6 }}
267277 {{- end }}
278+ {{- if or .Values.global.codefresh.tls.caCerts.secret.create .Values.global.codefresh.tls.caCerts.secretKeyRef }}
279+ - name : codefresh-tls-certs
280+ secret :
281+ secretName : {{ .Values.global.codefresh.tls.caCerts.secret.create | ternary "codefresh-tls-certs" .Values.global.codefresh.tls.caCerts.secretKeyRef.name }}
282+ defaultMode : 420
283+ optional : true
284+ {{- end }}
268285 - emptyDir : { }
269286 name : plugins-home
270287 - emptyDir : { }
0 commit comments