Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions deployments/gpu-operator/templates/cleanup_crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ spec:
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if .Values.operator.nodeSelector }}
nodeSelector:
{{- toYaml .Values.operator.nodeSelector | nindent 8 }}
{{- else }}
nodeSelector:
kubernetes.io/os: linux
{{- end }}
containers:
- name: cleanup-crd
image: {{ include "gpu-operator.fullimage" . }}
Expand Down
6 changes: 6 additions & 0 deletions deployments/gpu-operator/templates/upgrade_crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,12 @@ spec:
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
nodeSelector:
{{- if .Values.operator.nodeSelector }}
{{- toYaml .Values.operator.nodeSelector | nindent 8 }}
{{- else }}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

instead of the else block, can we add just a default value for this parameter in values.yaml ?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@iacker Please address this comment as well

kubernetes.io/os: linux
{{- end }}
containers:
- name: upgrade-crd
image: {{ include "gpu-operator.fullimage" . }}
Expand Down