Skip to content

Commit

Permalink
fix(edge): existing secrets with envFrom should not be interpolated i…
Browse files Browse the repository at this point in the history
…nto env setting

fixes #9111
  • Loading branch information
vikrambindal authored Jan 24, 2025
1 parent e1ae6b0 commit e5f7920
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
3 changes: 1 addition & 2 deletions charts/unleash-edge/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ icon: https://docs.getunleash.io/img/logo.svg

type: application

version: 2.7.4

version: 3.0.0
appVersion: "v19.6.1"

maintainers:
Expand Down
2 changes: 2 additions & 0 deletions charts/unleash-edge/ci/unleash-edge-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ autoscaling:
ingress:
enabled: true

existingSecrets: ""

edge:
upstreamUrl: "http://unleash:4242"

Expand Down
8 changes: 5 additions & 3 deletions charts/unleash-edge/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,18 @@ spec:
- name: RUST_LOG
value: "{{ .Values.edge.logLevel }}"
{{- end }}
{{- if .Values.existingSecrets }}
{{- toYaml .Values.existingSecrets | nindent 12 }}
{{- end }}
{{- if .Values.edge.logFormat }}
- name: LOG_FORMAT
value: "{{ .Values.edge.logFormat }}"
{{- end }}
{{- if .Values.env }}
{{- toYaml .Values.env | nindent 12 }}
{{- end }}
{{- if .Values.existingSecrets }}
envFrom:
- secretRef:
name: {{ .Values.existingSecrets }}
{{- end }}
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
Expand Down
6 changes: 1 addition & 5 deletions charts/unleash-edge/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -169,11 +169,7 @@ extraObjects: []
# adds environmentvars for existing secrets to the container via tpl function
existingSecrets:
""
# - name: TOKENS
# valueFrom:
# secretKeyRef:
# name: secretname
# key: secretkey
# Name of the secret containing key value pairs

edge:
upstreamUrl: "http://unleash.unleash:4242"
Expand Down

0 comments on commit e5f7920

Please sign in to comment.