Skip to content

Commit

Permalink
use unified cosi resource kustumize
Browse files Browse the repository at this point in the history
  • Loading branch information
anurag4DSB committed Dec 23, 2024
1 parent 7b90f18 commit 2450b77
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .github/scripts/cleanup_cosi_resources.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions .github/scripts/setup_cosi_resources.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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..."
Expand Down

0 comments on commit 2450b77

Please sign in to comment.