Skip to content

Commit ff49cf9

Browse files
committed
Added custom accelerator and removal of nvidia driver
1 parent 902d924 commit ff49cf9

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,7 @@ ifeq ($(USE_RHOAI), true) ## Delete RHOAI Operator
453453
else ## Delete Open Data Hub Operator
454454
-make delete-opendatahub-operator
455455
endif
456+
kubectl delete -f contrib/configuration/accelerator-profile.yaml
456457

457458
.PHONY: install-ai-platform-operator
458459
install-ai-platform-operator:
@@ -461,6 +462,7 @@ ifeq ($(USE_RHOAI), true) ## Delete RHOAI Operator
461462
else ## Delete Open Data Hub Operator
462463
-make install-opendatahub-operator
463464
endif
465+
kubectl apply -f contrib/configuration/accelerator-profile.yaml
464466

465467
.PHONY: delete-rhoai-operator
466468
delete-rhoai-operator: ## Delete RHOAI Operator
@@ -569,6 +571,7 @@ endif
569571
.PHONY: delete-nvidia-operator
570572
delete-nvidia-operator: ## Delete nvidia operator
571573
@echo -e "\n==> Deleting ClusterPolicy CR \n"
574+
kubectl delete --ignore-not-found=true NVIDIADriver gpu-driver
572575
kubectl delete ClusterPolicy --all -n nvidia-gpu-operator
573576
@while [[ -n $$(kubectl get ClusterPolicy -n nvidia-gpu-operator) ]]; do echo "."; sleep 10; done
574577
@echo -e "\n==> Deleting nvidia Operator \n"
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
apiVersion: dashboard.opendatahub.io/v1
2+
kind: AcceleratorProfile
3+
metadata:
4+
name: gpu-accelerator-profile
5+
namespace: redhat-ods-applications
6+
spec: {
7+
displayName: nvidia-gpu,
8+
enabled: true,
9+
identifier: nvidia.com/gpu
10+
}

0 commit comments

Comments
 (0)