Skip to content

Commit 209e1db

Browse files
Merge pull request #993 from karelyatin/operator_status_rabbit
Fix issue with rabbitmq operator status check
2 parents 17f0544 + cde79d2 commit 209e1db

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)