diff --git a/.github/scripts/cleanup_cosi_resources.sh b/.github/scripts/cleanup_cosi_resources.sh index 9edfde3c..0017f347 100755 --- a/.github/scripts/cleanup_cosi_resources.sh +++ b/.github/scripts/cleanup_cosi_resources.sh @@ -63,8 +63,7 @@ log_and_run echo "Deleting s3-secret-for-cosi secret..." log_and_run kubectl delete secret s3-secret-for-cosi --namespace=default || { echo "Secret s3-secret-for-cosi not found." | tee -a "$LOG_FILE"; } log_and_run echo "Deleting COSI CRDs..." -log_and_run kubectl delete -k github.com/kubernetes-sigs/container-object-storage-interface/client || { echo "COSI API CRDs not found." | tee -a "$LOG_FILE"; } -log_and_run kubectl delete -k github.com/kubernetes-sigs/container-object-storage-interface/controller || { echo "COSI Controller CRDs not found." | tee -a "$LOG_FILE"; } +log_and_run kubectl delete -k github.com/kubernetes-sigs/container-object-storage-interface || { echo "COSI API CRDs or controller not found." | tee -a "$LOG_FILE"; } log_and_run echo "Verifying COSI CRDs deletion..." if kubectl get crd | grep 'container-object-storage-interface' &>/dev/null; then diff --git a/.github/scripts/setup_cosi_resources.sh b/.github/scripts/setup_cosi_resources.sh index aa4f86da..a4ae66a0 100755 --- a/.github/scripts/setup_cosi_resources.sh +++ b/.github/scripts/setup_cosi_resources.sh @@ -26,8 +26,7 @@ log_and_run() { # Step 1: Install COSI CRDs log_and_run echo "Installing COSI CRDs..." -log_and_run kubectl create -k github.com/kubernetes-sigs/container-object-storage-interface/client -log_and_run kubectl create -k github.com/kubernetes-sigs/container-object-storage-interface/controller +log_and_run kubectl create -k github.com/kubernetes-sigs/container-object-storage-interface # Step 2: Verify COSI Controller Pod Status log_and_run echo "Verifying COSI Controller Pod status..."