You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
command: ["bash", "-c", "echo 'Waiting for all kafka brokers to be ready' && kubectl wait --for=condition=ready --timeout=30m pod -l app.kubernetes.io/name=kafka -l app.kubernetes.io/instance=kafka"]
16
+
command:
17
+
- bash
18
+
- -euo
19
+
- pipefail
20
+
- -c
21
+
- |
22
+
echo 'Waiting for all minio instances to be ready'
23
+
kubectl wait --for=condition=ready --timeout=30m pod -l app=minio,release=minio,stackable.tech/vendor=Stackable
24
+
echo 'Waiting for all kafka brokers to be ready'
25
+
kubectl wait --for=condition=ready --timeout=30m pod -l app.kubernetes.io/name=kafka,app.kubernetes.io/instance=kafka
26
+
echo 'Waiting for all nifi instances to be ready'
27
+
kubectl wait --for=condition=ready --timeout=30m pod -l app.kubernetes.io/name=nifi,app.kubernetes.io/instance=nifi
log ERROR "Failed to retrieve metadata for topic: $topic"
60
+
return 1
61
+
fi
62
+
63
+
log DEBUG "Metadata for $topic:"
64
+
echo "$metadata"
65
+
66
+
if echo "$metadata" | grep -q 'leader: -1'; then
67
+
log ERROR "Found 'leader: -1' in topic '$topic'; topic not ready yet!"
68
+
return 1
69
+
fi
70
+
71
+
if echo "$metadata" | grep -q 'Broker: Leader not available'; then
72
+
log ERROR "Topic '$topic' not available yet"
73
+
return 1
74
+
fi
75
+
76
+
log INFO "Check topic '$topic' was successful"
77
+
return 0
78
+
}
79
+
80
+
for topic in "shared_bikes_bike_status" "shared_bikes_station_status" "shared_bikes_station_information" "water_levels_measurements" "water_levels_stations"
0 commit comments