event-reporter / statefulset: added codefresh cert secret volumes
This commit is contained in:
parent
f98f2f4d4a
commit
792790fabf
1 changed files with 18 additions and 0 deletions
|
@ -101,6 +101,12 @@ spec:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
key: token
|
key: token
|
||||||
name: codefresh-token
|
name: codefresh-token
|
||||||
|
{{- if or .Values.global.codefresh.tls.caCerts.secret.create .Values.global.codefresh.tls.caCerts.secretKeyRef }}
|
||||||
|
{{- $name := .Values.global.codefresh.tls.caCerts.secret.create | ternary "codefresh-tls-certs" .Values.global.codefresh.tls.caCerts.secretKeyRef.name }}
|
||||||
|
{{- $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 }}
|
||||||
|
- name: CODEFRESH_SSL_CERT_FILE
|
||||||
|
value: /app/config/codefresh-tls-certs/{{ $key }}
|
||||||
|
{{- end }}
|
||||||
# todo: clean up
|
# todo: clean up
|
||||||
- name: EVENT_REPORTER_INSECURE
|
- name: EVENT_REPORTER_INSECURE
|
||||||
valueFrom:
|
valueFrom:
|
||||||
|
@ -227,6 +233,11 @@ spec:
|
||||||
{{- with .Values.eventReporter.volumeMounts }}
|
{{- with .Values.eventReporter.volumeMounts }}
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if or .Values.global.codefresh.tls.caCerts.secret.create .Values.global.codefresh.tls.caCerts.secretKeyRef}}
|
||||||
|
- name: codefresh-tls-certs
|
||||||
|
mountPath: /app/config/codefresh-tls-certs
|
||||||
|
readOnly: true
|
||||||
|
{{- end }}
|
||||||
- name: argocd-repo-server-tls
|
- name: argocd-repo-server-tls
|
||||||
mountPath: /app/config/server/tls
|
mountPath: /app/config/server/tls
|
||||||
- mountPath: /tmp
|
- mountPath: /tmp
|
||||||
|
@ -265,6 +276,13 @@ spec:
|
||||||
{{- with .Values.eventReporter.volumes }}
|
{{- with .Values.eventReporter.volumes }}
|
||||||
{{- toYaml . | nindent 6 }}
|
{{- toYaml . | nindent 6 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if or .Values.global.codefresh.tls.caCerts.secret.create .Values.global.codefresh.tls.caCerts.secretKeyRef }}
|
||||||
|
- name: codefresh-tls-certs
|
||||||
|
secret:
|
||||||
|
secretName: {{ .Values.global.codefresh.tls.caCerts.secret.create | ternary "codefresh-tls-certs" .Values.global.codefresh.tls.caCerts.secretKeyRef.name }}
|
||||||
|
defaultMode: 420
|
||||||
|
optional: true
|
||||||
|
{{- end }}
|
||||||
- emptyDir: { }
|
- emptyDir: { }
|
||||||
name: plugins-home
|
name: plugins-home
|
||||||
- emptyDir: { }
|
- emptyDir: { }
|
||||||
|
|
Loading…
Reference in a new issue