Skip to content

Commit

Permalink
Merge pull request #4371 from monteiro-renato/patch-6
Browse files Browse the repository at this point in the history
🐛 fix: (helm/v1alpha1): env config should not be dependent on DeployImages
  • Loading branch information
k8s-ci-robot authored Nov 22, 2024
2 parents 9bb9b91 + 66d5f86 commit e912c51
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,13 @@ spec:
command:
- /manager
image: {{ "{{ .Values.controllerManager.container.image.repository }}" }}:{{ "{{ .Values.controllerManager.container.image.tag }}" }}
{{- if .DeployImages }}
{{ "{{- if .Values.controllerManager.container.env }}" }}
env:
{{ "{{- range $key, $value := .Values.controllerManager.container.env }}" }}
- name: {{ "{{ $key }}" }}
value: {{ "{{ $value }}" }}
{{ "{{- end }}" }}
{{- end }}
{{ "{{- end }}" }}
livenessProbe:
{{ "{{- toYaml .Values.controllerManager.container.livenessProbe | nindent 12 }}" }}
readinessProbe:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,13 @@ spec:
command:
- /manager
image: {{ .Values.controllerManager.container.image.repository }}:{{ .Values.controllerManager.container.image.tag }}
{{- if .Values.controllerManager.container.env }}
env:
{{- range $key, $value := .Values.controllerManager.container.env }}
- name: {{ $key }}
value: {{ $value }}
{{- end }}
{{- end }}
livenessProbe:
{{- toYaml .Values.controllerManager.container.livenessProbe | nindent 12 }}
readinessProbe:
Expand Down

0 comments on commit e912c51

Please sign in to comment.