Skip to content

Commit cde79d2

Browse files
committed
Fix issue with rabbitmq operator status check
#986 broke kuttl tests as was checking for wrong deployment name as it's not similar to other openstack operators.
1 parent 17f0544 commit cde79d2

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

scripts/get-operator-status.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,13 @@ if [ -z "$OPERATOR_NAME" ]; then
99
echo "Please set OPERATOR_NAME"; exit 1
1010
fi
1111

12-
REPLICAS=$(oc get -n "${OPERATOR_NAMESPACE}" deployment ${OPERATOR_NAME}-operator-controller-manager -o json | jq -e '.status.availableReplicas')
12+
if [ "$OPERATOR_NAME" = "rabbitmq-cluster" ]; then
13+
DEPL_NAME="rabbitmq-cluster-operator"
14+
else
15+
DEPL_NAME=${OPERATOR_NAME}-operator-controller-manager
16+
fi
17+
18+
REPLICAS=$(oc get -n "${OPERATOR_NAMESPACE}" deployment ${DEPL_NAME} -o json | jq -e '.status.availableReplicas')
1319
if [ "$REPLICAS" != "1" ]; then
1420
exit 1
1521
fi

0 commit comments

Comments
 (0)