Skip to content

Commit

Permalink
Resolve or feedback for env section
Browse files Browse the repository at this point in the history
Signed-off-by: Wayne Starr <[email protected]>
  • Loading branch information
Racer159 committed Aug 4, 2024
1 parent 255a247 commit 3b3044d
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions charts/fulcio/templates/fulcio-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 3b3044d

Please sign in to comment.