From c1c381f3b24267f1962d87128cbfa55678d9a86e Mon Sep 17 00:00:00 2001 From: Akos Eros Date: Wed, 3 Dec 2025 18:21:59 +0100 Subject: [PATCH] fix: specify the exact subscription api This is needed, in case there might be multiple subscription crds in the cluster, like subscriptions.apps.open-cluster-management.io --- hack/operator-build-deploy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/operator-build-deploy.sh b/hack/operator-build-deploy.sh index 08059cc3d..82fd83825 100755 --- a/hack/operator-build-deploy.sh +++ b/hack/operator-build-deploy.sh @@ -84,7 +84,7 @@ wait_for_resource "operator" "${OPERATOR}" "${NS}" while true; do set +e - INSTALLED_CSV=$(oc get subscription "${OPERATOR}" -n "${NS}" -o jsonpath='{.status.installedCSV}') + INSTALLED_CSV=$(oc get subscriptions.operators.coreos.com "${OPERATOR}" -n "${NS}" -o jsonpath='{.status.installedCSV}') if [ -z "${INSTALLED_CSV}" ]; then sleep 10 else