Skip to content

Commit

Permalink
[mlrun] Fix Duplications Between extraEnv and extraEnvKeyVal (#999)
Browse files Browse the repository at this point in the history
Co-authored-by: quaark <a.melnick@icloud.com>
  • Loading branch information
quaark and quaark authored Aug 23, 2023
1 parent 4e00005 commit 936c831
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion stable/mlrun/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: mlrun
version: 0.9.16
version: 0.9.17
appVersion: 1.4.0
description: Machine Learning automation and tracking
sources:
Expand Down
7 changes: 6 additions & 1 deletion stable/mlrun/templates/api-chief-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,12 @@ spec:
value: {{ .Values.api.sidecars.logCollector.getLogsBufferSizeBytes | quote }}
{{- end }}
{{- if .Values.api.extraEnv }}
{{ toYaml .Values.api.extraEnv | nindent 10 }}
{{- range .Values.api.extraEnv }}
{{- if not (hasKey $.Values.api.extraEnvKeyValue .name) }}
- name: {{ .name }}
value: {{ .value }}
{{- end }}
{{- end }}
{{- end }}
{{- if .Values.api.extraEnvKeyValue }}
{{- range $name, $value := .Values.api.extraEnvKeyValue }}
Expand Down
7 changes: 6 additions & 1 deletion stable/mlrun/templates/api-worker-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,12 @@ spec:
value: {{ .Values.api.sidecars.logCollector.getLogsBufferSizeBytes | quote }}
{{- end }}
{{- if .Values.api.extraEnv }}
{{ toYaml .Values.api.extraEnv | nindent 10 }}
{{- range .Values.api.extraEnv }}
{{- if not (hasKey $.Values.api.extraEnvKeyValue .name) }}
- name: {{ .name }}
value: {{ .value }}
{{- end }}
{{- end }}
{{- end }}
{{- if .Values.api.extraEnvKeyValue }}
{{- range $name, $value := .Values.api.extraEnvKeyValue }}
Expand Down

0 comments on commit 936c831

Please sign in to comment.