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