Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
add a contition

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Signed-off-by: takuya <[email protected]>
  • Loading branch information
takuyaymd and coderabbitai[bot] authored Nov 25, 2024
1 parent b2bce16 commit 5a1da48
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions charts/vald/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -896,8 +896,10 @@ spec:
{{- toYaml .Job.securityContext | nindent 12 }}
{{- end }}
{{- end }}
{{- if .Job.affinity }}
affinity:
{{- include "vald.affinity" .Job.affinity | nindent 8 }}
{{- end }}
containers:
- name: {{ .Job.name }}
image: "{{ .Job.image.repository }}:{{ default .default.Values.defaults.image.tag .Job.image.tag }}"
Expand Down

0 comments on commit 5a1da48

Please sign in to comment.