From 2e84f2ecdd4bd06d69d9640900d46c04bd1acb7a 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 25e0d31e..c88ee236 100644 --- a/charts/fulcio/templates/fulcio-deployment.yaml +++ b/charts/fulcio/templates/fulcio-deployment.yaml @@ -71,27 +71,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: