Skip to content

Commit 4eb928a

Browse files
committed
check current replicas in tests
1 parent 5d7ff7b commit 4eb928a

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

k8s/kafka-persistent.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ spec:
111111
name: data
112112
spec:
113113
accessModes: [ "ReadWriteOnce" ]
114+
storageClassName: "standard"
114115
resources:
115116
requests:
116117
storage: 1Gi

k8s/kafka-zk-persistent.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,20 +127,23 @@ spec:
127127
name: kafka-data
128128
spec:
129129
accessModes: [ "ReadWriteOnce" ]
130+
storageClassName: "standard"
130131
resources:
131132
requests:
132133
storage: 1Gi
133134
- metadata:
134135
name: zk-data
135136
spec:
136137
accessModes: [ "ReadWriteOnce" ]
138+
storageClassName: "standard"
137139
resources:
138140
requests:
139141
storage: 1Gi
140142
- metadata:
141143
name: zk-datalog
142144
spec:
143145
accessModes: [ "ReadWriteOnce" ]
146+
storageClassName: "standard"
144147
resources:
145148
requests:
146149
storage: 1Gi

k8s/main.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ function check()
7878
echo "ERROR: Max number of attempts was reached (${MAX_ATTEMPTS})"
7979
exit 1
8080
fi
81-
READY_REPLICAS=$(kubectl get -f $1 -o jsonpath='{.items[?(@.kind=="StatefulSet")].status.readyReplicas}' 2>&1)
81+
READY_REPLICAS=$(kubectl get -f $1 -o jsonpath='{.items[?(@.kind=="StatefulSet")].status.currentReplicas}' 2>&1)
8282
echo "[${ATTEMPTS}/${MAX_ATTEMPTS}] - Ready replicas : ${READY_REPLICAS:-0}/$REPLICAS ... "
8383
done
8484
kubectl get all

openshift/main.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ function check()
7373
echo "ERROR: Max number of attempts was reached (${MAX_ATTEMPTS})"
7474
exit 1
7575
fi
76-
READY_REPLICAS=$(oc get statefulset -l component=${2:-kafka} -o jsonpath='{.items[?(@.kind=="StatefulSet")].status.readyReplicas}' 2>&1)
76+
READY_REPLICAS=$(oc get statefulset -l component=${2:-kafka} -o jsonpath='{.items[?(@.kind=="StatefulSet")].status.currentReplicas}' 2>&1)
7777
echo "[${ATTEMPTS}/${MAX_ATTEMPTS}] - Ready replicas : ${READY_REPLICAS:-0}/$REPLICAS ... "
7878
done
7979
oc get all

0 commit comments

Comments
 (0)