@@ -744,24 +744,30 @@ kubectl create namespace metal3
744744patch_clusterctl
745745launch_cluster_api_provider_metal3
746746BMO_NAME_PREFIX=" ${NAMEPREFIX} "
747- launch_baremetal_operator
747+ if [[ " ${SKIP_APPLY_BMH:- false} " != " true" ]]; then
748+ launch_baremetal_operator
749+ fi
748750if [[ " ${USE_IRSO} " = true ]]; then
749- launch_ironic_standalone_operator
750- launch_ironic_via_irso
751+ if [[ " ${SKIP_APPLY_BMH:- false} " = " false" ]]; then
752+ launch_ironic_standalone_operator
753+ launch_ironic_via_irso
754+ fi
751755else
752756 launch_ironic
753757fi
754758
755- if [[ " ${BMO_RUN_LOCAL} " != true ]]; then
756- if ! kubectl rollout status deployment " ${BMO_NAME_PREFIX} " -controller-manager -n " ${IRONIC_NAMESPACE} " --timeout=" ${BMO_ROLLOUT_WAIT} " m; then
757- echo " baremetal-operator-controller-manager deployment can not be rollout"
758- exit 1
759+ if [[ " ${SKIP_APPLY_BMH:- false} " != " true" ]]; then
760+ if [[ " ${BMO_RUN_LOCAL} " != true ]]; then
761+ if ! kubectl rollout status deployment " ${BMO_NAME_PREFIX} " -controller-manager -n " ${IRONIC_NAMESPACE} " --timeout=" ${BMO_ROLLOUT_WAIT} " m; then
762+ echo " baremetal-operator-controller-manager deployment can not be rollout"
763+ exit 1
764+ fi
765+ else
766+ # There is no certificate to run validation webhook on local.
767+ # Thus we are deleting validatingwebhookconfiguration resource if exists
768+ # to let BMO is working properly on local runs.
769+ kubectl delete validatingwebhookconfiguration/" ${BMO_NAME_PREFIX} " -validating-webhook-configuration --ignore-not-found=true
759770 fi
760- else
761- # There is no certificate to run validation webhook on local.
762- # Thus we are deleting validatingwebhookconfiguration resource if exists
763- # to let BMO is working properly on local runs.
764- kubectl delete validatingwebhookconfiguration/" ${BMO_NAME_PREFIX} " -validating-webhook-configuration --ignore-not-found=true
765771fi
766772
767773# Tests might want to apply bmh inside the test scipt
0 commit comments