@@ -450,16 +450,20 @@ delete-all-in-one:
450450delete-ai-platform-operator :
451451ifeq ($(USE_RHOAI ) , true) # # Delete RHOAI Operator
452452 -make delete-rhoai-operator
453+ -kubectl delete -f contrib/configuration/accelerator-profile.yaml -n redhat-ods-applications
453454else ## Delete Open Data Hub Operator
454455 -make delete-opendatahub-operator
456+ -kubectl delete -f contrib/configuration/accelerator-profile.yaml -n opendatahub
455457endif
456458
457459.PHONY : install-ai-platform-operator
458460install-ai-platform-operator :
459461ifeq ($(USE_RHOAI ) , true) # # Delete RHOAI Operator
460462 -make install-rhoai-operator
463+ -kubectl apply -f contrib/configuration/accelerator-profile.yaml -n redhat-ods-applications
461464else ## Delete Open Data Hub Operator
462465 -make install-opendatahub-operator
466+ -kubectl apply -f contrib/configuration/accelerator-profile.yaml -n opendatahub
463467endif
464468
465469.PHONY : delete-rhoai-operator
@@ -569,6 +573,7 @@ endif
569573.PHONY : delete-nvidia-operator
570574delete-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"
0 commit comments