File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -349,6 +349,7 @@ function capture_manifests() {
349349 clusterdeployment \
350350 clusterimageset \
351351 clusterprovision \
352+ clusterdeprovision \
352353 clusterstate \
353354 dnszone \
354355 machinepool \
Original file line number Diff line number Diff line change @@ -249,6 +249,9 @@ oc get clusterpool ${REAL_POOL_NAME} -o json \
249249NEW_CLUSTER_NAME=cdcci-${CLUSTER_NAME#* -}
250250create_customization " cdc-test" " ${CLUSTER_NAMESPACE} " " ${NEW_CLUSTER_NAME} "
251251oc patch cp -n $CLUSTER_NAMESPACE $REAL_POOL_NAME --type=merge -p ' {"spec": {"inventory": [{"name": "cdc-test"}]}}'
252+ # Set the legacy deprovision annotation to true. This annotation will be propagated to the created cluster.
253+ # This is to ensure the legacy destroy path continues to work post AWK SDK v2 migration.
254+ oc patch cp -n $CLUSTER_NAMESPACE $REAL_POOL_NAME --type=merge -p ' {"spec": {"annotations": {"hive.openshift.io/legacy-deprovision": "true"}}}'
252255# Now we can scale up the pool so it starts creating clusters
253256oc scale cp -n $CLUSTER_NAMESPACE $REAL_POOL_NAME --replicas=$POOL_SIZE
254257
You can’t perform that action at this time.
0 commit comments