Skip to content

Commit 6ff98e8

Browse files
committed
Merge branch 'upgrade_nvidia_driver_crd' into 'master'
Add nvidiadriver CRD in the pre-install helm hook for upgrades See merge request nvidia/kubernetes/gpu-operator!903
2 parents 8e27c0f + 43d2f3a commit 6ff98e8

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

deployments/gpu-operator/templates/upgrade_crd.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ spec:
3535
- -c
3636
- >
3737
kubectl apply -f /opt/gpu-operator/nvidia.com_clusterpolicies_crd.yaml;
38+
kubectl apply -f /opt/gpu-operator/nvidia.com_nvidiadrivers.yaml;
3839
{{- if .Values.nfd.enabled }}
3940
kubectl apply -f /opt/gpu-operator/nfd-api-crds.yaml;
4041
{{- end }}

docker/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ RUN mv ./kubectl /usr/local/bin
9595

9696
# Add CRD resource into the image for helm upgrades
9797
COPY deployments/gpu-operator/crds/nvidia.com_clusterpolicies_crd.yaml /opt/gpu-operator/nvidia.com_clusterpolicies_crd.yaml
98+
COPY deployments/gpu-operator/crds/nvidia.com_nvidiadrivers.yaml /opt/gpu-operator/nvidia.com_nvidiadrivers.yaml
9899
COPY deployments/gpu-operator/charts/node-feature-discovery/crds/nfd-api-crds.yaml /opt/gpu-operator/nfd-api-crds.yaml
99100

100101
# Install / upgrade packages here that are required to resolve CVEs

0 commit comments

Comments
 (0)