Skip to content

Commit

Permalink
Merge branch 'fix-gdrcopy-nvdriver' into 'master'
Browse files Browse the repository at this point in the history
[nvdriver] Add missing env in DTK container for GDRCopy

See merge request nvidia/kubernetes/gpu-operator!1009
  • Loading branch information
cdesiniotis committed Feb 2, 2024
2 parents a3a8121 + 1496004 commit 78cd663
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/state/testdata/golden/driver-gdrcopy-openshift.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,8 @@ spec:
value: 413.92.202304252344-0
- name: NVIDIA_VISIBLE_DEVICES
value: void
- name: GDRCOPY_ENABLED
value: "true"
image: quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:7fecaebc1d51b28bc3548171907e4d91823a031d7a6a694ab686999be2b4d867
imagePullPolicy: IfNotPresent
name: openshift-driver-toolkit-ctr
Expand Down
4 changes: 4 additions & 0 deletions manifests/state-driver/0500_daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,10 @@ spec:
- name: GDS_ENABLED
value: "true"
{{- end }}
{{- if and (.GDRCopy) (deref .GDRCopy.Spec.Enabled) }}
- name: GDRCOPY_ENABLED
value: "true"
{{- end }}
volumeMounts:
# corresponding volumes are dynamically injected by the
# operator when the OCP DriverToolkit side-car is enabled
Expand Down

0 comments on commit 78cd663

Please sign in to comment.