Skip to content

Commit 5f1bec5

Browse files
Added custom accelerator and removal of nvidia driver
1 parent 1705b8a commit 5f1bec5

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

Diff for: Makefile

+5
Original file line numberDiff line numberDiff line change
@@ -450,16 +450,20 @@ delete-all-in-one:
450450
delete-ai-platform-operator:
451451
ifeq ($(USE_RHOAI), true) ## Delete RHOAI Operator
452452
-make delete-rhoai-operator
453+
-kubectl delete -f contrib/configuration/accelerator-profile.yaml -n redhat-ods-applications
453454
else ## Delete Open Data Hub Operator
454455
-make delete-opendatahub-operator
456+
-kubectl delete -f contrib/configuration/accelerator-profile.yaml -n opendatahub
455457
endif
456458

457459
.PHONY: install-ai-platform-operator
458460
install-ai-platform-operator:
459461
ifeq ($(USE_RHOAI), true) ## Delete RHOAI Operator
460462
-make install-rhoai-operator
463+
-kubectl apply -f contrib/configuration/accelerator-profile.yaml -n redhat-ods-applications
461464
else ## Delete Open Data Hub Operator
462465
-make install-opendatahub-operator
466+
-kubectl apply -f contrib/configuration/accelerator-profile.yaml -n opendatahub
463467
endif
464468

465469
.PHONY: delete-rhoai-operator
@@ -569,6 +573,7 @@ endif
569573
.PHONY: delete-nvidia-operator
570574
delete-nvidia-operator: ## Delete nvidia operator
571575
@echo -e "\n==> Deleting ClusterPolicy CR \n"
576+
kubectl delete --ignore-not-found=true NVIDIADriver gpu-driver
572577
kubectl delete ClusterPolicy --all -n nvidia-gpu-operator
573578
@while [[ -n $$(kubectl get ClusterPolicy -n nvidia-gpu-operator) ]]; do echo "."; sleep 10; done
574579
@echo -e "\n==> Deleting nvidia Operator \n"

Diff for: contrib/configuration/accelerator-profile.yaml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
apiVersion: dashboard.opendatahub.io/v1
2+
kind: AcceleratorProfile
3+
metadata:
4+
name: gpu-accelerator-profile
5+
spec: {
6+
displayName: nvidia-gpu,
7+
enabled: true,
8+
identifier: nvidia.com/gpu
9+
}

0 commit comments

Comments
 (0)