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 7, 2024
1 parent 1490b45 commit 2e84f2e
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 2e84f2e

Please sign in to comment.