22set -euo pipefail
33IFS=$' \n\t '
44
5- operator_controller_manifest =$MANIFEST
5+ olmv1_manifest =$MANIFEST
66
7- if [[ -z " $operator_controller_manifest " ]]; then
7+ if [[ -z " $olmv1_manifest " ]]; then
88 echo " Error: Missing required MANIFEST variable"
99 exit 1
1010fi
1111
12- catalogd_manifest=" ./catalogd/catalogd.yaml"
1312default_catalogs_manifest=" ./catalogd/config/base/default/clustercatalogs/default-catalogs.yaml"
1413cert_mgr_version=$CERT_MGR_VERSION
1514install_default_catalogs=$INSTALL_DEFAULT_CATALOGS
1615
17- if [[ ! -f " $catalogd_manifest " ]]; then
18- echo " Error: Missing required catalogd manifest file at $catalogd_manifest "
19- exit 1
20- fi
21-
2216if [[ -z " $cert_mgr_version " ]]; then
2317 echo " Error: Missing CERT_MGR_VERSION variable"
2418 exit 1
@@ -75,10 +69,11 @@ kubectl_wait "cert-manager" "deployment/cert-manager" "60s"
7569kubectl_wait_for_query " mutatingwebhookconfigurations/cert-manager-webhook" ' {.webhooks[0].clientConfig.caBundle}' 60 5
7670kubectl_wait_for_query " validatingwebhookconfigurations/cert-manager-webhook" ' {.webhooks[0].clientConfig.caBundle}' 60 5
7771
78- kubectl apply -f " ${catalogd_manifest } "
72+ kubectl apply -f " ${olmv1_manifest } "
7973# Wait for the rollout, and then wait for the deployment to be Available
8074kubectl_wait_rollout " olmv1-system" " deployment/catalogd-controller-manager" " 60s"
8175kubectl_wait " olmv1-system" " deployment/catalogd-controller-manager" " 60s"
76+ kubectl_wait " olmv1-system" " deployment/operator-controller-controller-manager" " 60s"
8277
8378if [[ " ${install_default_catalogs} " != " false" ]]; then
8479 if [[ ! -f " $default_catalogs_manifest " ]]; then
@@ -89,6 +84,3 @@ if [[ "${install_default_catalogs}" != "false" ]]; then
8984 kubectl apply -f " ${default_catalogs_manifest} "
9085 kubectl wait --for=condition=Serving " clustercatalog/operatorhubio" --timeout=" 60s"
9186fi
92-
93- kubectl apply -f " ${operator_controller_manifest} "
94- kubectl_wait " olmv1-system" " deployment/operator-controller-controller-manager" " 60s"
0 commit comments