Skip to content

Commit

Permalink
fix: cpl uninstall stuck in uninstalling
Browse files Browse the repository at this point in the history
Signed-off-by: Abirdcfly <[email protected]>
  • Loading branch information
Abirdcfly committed Oct 30, 2023
1 parent 6796675 commit 315bb44
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions config/samples/example-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -510,8 +510,16 @@ waitPodReady "kubebb-system" "app.kubernetes.io/instance=my-nginx,app.kubernetes
getHelmRevision "kubebb-system" "my-nginx" "4"
validateComponentPlanStatusLatestValue "kubebb-system" "do-once-nginx-sample-15.1.0" "false"
validateComponentPlanStatusLatestValue "kubebb-system" "do-once-nginx-sample-15.0.2" "true"
deleteComponentPlan "kubebb-system" "do-once-nginx-sample-15.1.0" "false"
deleteComponentPlan "kubebb-system" "do-once-nginx-sample-15.0.2" "true"
rand=$(awk 'BEGIN{srand(); print rand()}')
if [ $rand -lt 0.5 ]; then
info "remove older cpl first"
deleteComponentPlan "kubebb-system" "do-once-nginx-sample-15.0.2" "true"
deleteComponentPlan "kubebb-system" "do-once-nginx-sample-15.1.0" "true"
else
info "remove newer cpl first"
deleteComponentPlan "kubebb-system" "do-once-nginx-sample-15.1.0" "false"
deleteComponentPlan "kubebb-system" "do-once-nginx-sample-15.0.2" "true"
fi

info "5.5 Verify long running componentPlan install don not block others to install"
kubectl apply -f config/samples/core_v1alpha1_nginx_componentplan_long_ready.yaml
Expand Down

0 comments on commit 315bb44

Please sign in to comment.