Skip to content

Commit

Permalink
update: script
Browse files Browse the repository at this point in the history
  • Loading branch information
codekow committed Jun 20, 2024
1 parent cabc7a8 commit a9297c2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions advanced-cluster-management/remove-acm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ component_vwc=(
multicluster-observability-operator
)

for vwc in "${component_vwc[@]}"
do
echo "delete validatingwebhookconfigurations ${vwc} resources..."
"${KUBECTL}" delete validatingwebhookconfigurations "${vwc}"
done

# Force delete all component CRDs if they still exist
# oc get crd -o name | grep cluster-management.io
component_crds=(
Expand Down Expand Up @@ -66,12 +72,6 @@ component_crds=(
userpreferences.console.open-cluster-management.io
)

for vwc in "${component_vwc[@]}"
do
echo "delete validatingwebhookconfigurations ${vwc} resources..."
"${KUBECTL}" delete validatingwebhookconfigurations "${vwc}"
done

for crd in "${component_crds[@]}"; do
echo "force delete all CustomResourceDefinition ${crd} resources..."
for resource in $("${KUBECTL}" get "${crd}" -o name -n "${OPERATOR_NAMESPACE}")
Expand Down

0 comments on commit a9297c2

Please sign in to comment.