fix lint issue

This commit is contained in:
Oleksandr Saulyak 2024-08-16 07:16:48 +03:00 committed by GitHub
parent 493fa4294f
commit b34174bef9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -102,11 +102,13 @@ spec:
secretKeyRef:
key: token
name: codefresh-token
{{- if .Values.global.codefresh }}
{{- if or .Values.global.codefresh.tls.caCerts.secret.create .Values.global.codefresh.tls.caCerts.secretKeyRef }}
{{- $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_PATH
value: /app/config/codefresh-tls-certs/{{ $key }}
{{- end }}
{{- end }}
# todo: clean up
- name: EVENT_REPORTER_INSECURE
valueFrom:
@ -233,11 +235,13 @@ spec:
{{- with .Values.eventReporter.volumeMounts }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if .Values.global.codefresh}}
{{- 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 }}
{{- end }}
- name: argocd-repo-server-tls
mountPath: /app/config/server/tls
- mountPath: /tmp
@ -276,6 +280,7 @@ spec:
{{- with .Values.eventReporter.volumes }}
{{- toYaml . | nindent 6 }}
{{- end }}
{{- if .Values.global.codefresh }}
{{- if or .Values.global.codefresh.tls.caCerts.secret.create .Values.global.codefresh.tls.caCerts.secretKeyRef }}
- name: codefresh-tls-certs
secret:
@ -283,6 +288,7 @@ spec:
defaultMode: 420
optional: true
{{- end }}
{{- end }}
- emptyDir: { }
name: plugins-home
- emptyDir: { }