diff --git a/03_launch_mgmt_cluster.sh b/03_launch_mgmt_cluster.sh index 61c1009e7..d5a108ab6 100755 --- a/03_launch_mgmt_cluster.sh +++ b/03_launch_mgmt_cluster.sh @@ -849,6 +849,7 @@ else kubectl delete validatingwebhookconfiguration/"${BMO_NAME_PREFIX}"-validating-webhook-configuration --ignore-not-found=true fi + # Tests might want to apply bmh inside the test scipt # then dev-env will create the bmh files but do not apply them if [[ "${SKIP_APPLY_BMH:-false}" = "true" ]]; then diff --git a/03_launch_mgmt_cluster_pre_1_10.sh b/03_launch_mgmt_cluster_pre_1_10.sh index 65dacdc04..4c676a635 100755 --- a/03_launch_mgmt_cluster_pre_1_10.sh +++ b/03_launch_mgmt_cluster_pre_1_10.sh @@ -751,19 +751,19 @@ if [[ "${USE_IRSO}" = true ]]; then else launch_ironic fi - if [[ "${BMO_RUN_LOCAL}" != true ]]; then if ! kubectl rollout status deployment "${BMO_NAME_PREFIX}"-controller-manager -n "${IRONIC_NAMESPACE}" --timeout="${BMO_ROLLOUT_WAIT}"m; then echo "baremetal-operator-controller-manager deployment can not be rollout" exit 1 fi else - # There is no certificate to run validation webhook on local. - # Thus we are deleting validatingwebhookconfiguration resource if exists - # to let BMO is working properly on local runs. - kubectl delete validatingwebhookconfiguration/"${BMO_NAME_PREFIX}"-validating-webhook-configuration --ignore-not-found=true + # There is no certificate to run validation webhook on local. + # Thus we are deleting validatingwebhookconfiguration resource if exists + # to let BMO is working properly on local runs. + kubectl delete validatingwebhookconfiguration/"${BMO_NAME_PREFIX}"-validating-webhook-configuration --ignore-not-found=true fi + # Tests might want to apply bmh inside the test scipt # then dev-env will create the bmh files but do not apply them if [[ "${SKIP_APPLY_BMH:-false}" = "true" ]]; then