From 27c6850586cd1f19dafb9c7ba82d4c6ecd39bb28 Mon Sep 17 00:00:00 2001 From: Wayne Starr Date: Wed, 24 Jul 2024 13:15:46 -0600 Subject: [PATCH] Resolve or feedback for env section Signed-off-by: Wayne Starr --- .../fulcio/templates/fulcio-deployment.yaml | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/charts/fulcio/templates/fulcio-deployment.yaml b/charts/fulcio/templates/fulcio-deployment.yaml index 121c19cf..77b16093 100644 --- a/charts/fulcio/templates/fulcio-deployment.yaml +++ b/charts/fulcio/templates/fulcio-deployment.yaml @@ -70,27 +70,20 @@ spec: {{- range .Values.server.extraArgs }} - {{ . | quote }} {{- end }} -{{- if .Values.server.env }} + {{- if or .Values.server.env (eq .Values.server.args.certificateAuthority "fileca") }} env: -{{- range $key, $value := .Values.server.env }} + {{- range $key, $value := .Values.server.env }} - name: "{{ $key }}" value: "{{ $value }}" -{{- end }} -{{- if eq .Values.server.args.certificateAuthority "fileca" }} + {{- end }} + {{- if eq .Values.server.args.certificateAuthority "fileca" }} - name: PASSWORD valueFrom: secretKeyRef: name: {{ .Values.server.secret }} key: password -{{- end }} -{{- else if eq .Values.server.args.certificateAuthority "fileca" }} - env: - - name: PASSWORD - valueFrom: - secretKeyRef: - name: {{ .Values.server.secret }} - key: password -{{- end }} + {{- end }} + {{- end }} livenessProbe: failureThreshold: 3 httpGet: