We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17f0544 commit cde79d2Copy full SHA for cde79d2
scripts/get-operator-status.sh
@@ -9,7 +9,13 @@ if [ -z "$OPERATOR_NAME" ]; then
9
echo "Please set OPERATOR_NAME"; exit 1
10
fi
11
12
-REPLICAS=$(oc get -n "${OPERATOR_NAMESPACE}" deployment ${OPERATOR_NAME}-operator-controller-manager -o json | jq -e '.status.availableReplicas')
+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')
19
if [ "$REPLICAS" != "1" ]; then
20
exit 1
21
0 commit comments