Skip to content

Commit

Permalink
add node_selector_enabled variable
Browse files Browse the repository at this point in the history
  • Loading branch information
rptaylor authored and y2kenny-amd committed Apr 17, 2024
1 parent 0a820b8 commit 73d8618
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions helm/amd-gpu/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ Kubernetes: `>= 1.18.0`
| lbl.image.tag | string | `"labeller-latest"` | |
| namespace | string | `"kube-system"` | |
| nfd.enabled | bool | `false` | |
| node_selector_enabled | bool | `false` | |
| node_selector."feature.node.kubernetes.io/pci-0300_1002.present" | string | `"true"` | |
| securityContext.allowPrivilegeEscalation | bool | `false` | |
| securityContext.capabilities.drop[0] | string | `"ALL"` | |
Expand Down
2 changes: 1 addition & 1 deletion helm/amd-gpu/templates/deviceplugin-daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spec:
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if .Values.nfd.enabled }}
{{- if .Values.node_selector_enabled }}
{{- with .Values.node_selector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
2 changes: 1 addition & 1 deletion helm/amd-gpu/templates/labeller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ spec:
labels:
name: amdgpu-lr-ds
spec:
{{- if .Values.nfd.enabled }}
{{- if .Values.node_selector_enabled }}
{{- with .Values.node_selector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
1 change: 1 addition & 0 deletions helm/amd-gpu/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ tolerations:
- key: CriticalAddonsOnly
operator: Exists

node_selector_enabled: false
node_selector:
feature.node.kubernetes.io/pci-0300_1002.present: "true"
kubernetes.io/arch: amd64

0 comments on commit 73d8618

Please sign in to comment.