Skip to content

Commit c1c381f

Browse files
committed
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
1 parent 1bb7049 commit c1c381f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hack/operator-build-deploy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ wait_for_resource "operator" "${OPERATOR}" "${NS}"
8484

8585
while true; do
8686
set +e
87-
INSTALLED_CSV=$(oc get subscription "${OPERATOR}" -n "${NS}" -o jsonpath='{.status.installedCSV}')
87+
INSTALLED_CSV=$(oc get subscriptions.operators.coreos.com "${OPERATOR}" -n "${NS}" -o jsonpath='{.status.installedCSV}')
8888
if [ -z "${INSTALLED_CSV}" ]; then
8989
sleep 10
9090
else

0 commit comments

Comments
 (0)