File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 42
42
az aks get-credentials --name $CLUSTER_NAME --resource-group $RESOURCE_GROUP --overwrite-existing
43
43
44
44
echo "Wait for pod readiness before checking expected Kafka message."
45
- kubectl wait --for=condition=Ready=true -n kafka pod/kafka-golang-consumer --timeout=180s
46
- kubectl wait --for=condition=Ready=true -n kafka pod/kafka-producer --timeout=180s
45
+ kubectl wait --for=condition=ready -n kafka pod/kafka-golang-consumer --timeout=180s || {
46
+ echo "Consumer is not ready within the acceptable time range. Printing out kubectl describe output."
47
+ echo $(kubectl describe pod -n kafka kafka-golang-consumer)
48
+ exit 1
49
+ }
50
+
51
+ kubectl wait --for=condition=ready -n kafka pod/kafka-producer --timeout=180s || {
52
+ echo "Producer is not ready within the acceptable time range. Printing out kubectl describe output."
53
+ echo $(kubectl describe pod -n kafka kafka-producer)
54
+ exit 1
55
+ }
47
56
48
57
max_retries=5
49
58
retries=0
You can’t perform that action at this time.
0 commit comments