Skip to content

Commit

Permalink
Add nvidiadriver CRD in the pre-install helm hook for upgrades
Browse files Browse the repository at this point in the history
  • Loading branch information
shivamerla committed Oct 19, 2023
1 parent 3f995d4 commit 43d2f3a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions deployments/gpu-operator/templates/upgrade_crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ spec:
- -c
- >
kubectl apply -f /opt/gpu-operator/nvidia.com_clusterpolicies_crd.yaml;
kubectl apply -f /opt/gpu-operator/nvidia.com_nvidiadrivers.yaml;
{{- if .Values.nfd.enabled }}
kubectl apply -f /opt/gpu-operator/nfd-api-crds.yaml;
{{- end }}
Expand Down
1 change: 1 addition & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ RUN mv ./kubectl /usr/local/bin

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

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

0 comments on commit 43d2f3a

Please sign in to comment.