Skip to content

Commit c40a882

Browse files
Also show certificaterequest, +1 max-parallel
1 parent 2c1e27b commit c40a882

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.github/workflows/test-kubernetes.yaml

+11-5
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
test:
1414
runs-on: ubuntu-latest
1515
strategy:
16-
max-parallel: 2
16+
max-parallel: 3
1717
matrix:
1818
# Always quote versions to prevent int truncation (1.30 -> 1.3)
1919
# https://kubernetes.io/releases
@@ -127,10 +127,16 @@ jobs:
127127
start=$(date +%s)
128128
129129
while [ $(date +%s) -le $end ]; do
130-
OUT=$(kubectl get certificate/dnsimple-test -o jsonpath='{.status.conditions}')
131-
echo -e "$OUT\n"
130+
OUT_CRT=$(kubectl get certificate/dnsimple-test -o json | jsonpath='{.status.conditions}')
131+
OUT_CRQ=$(k get CertificateRequest -o json)
132132
133-
if [ $(echo "$OUT" | grep -iE "Failed|Denied" | wc -l) -gt 0 ]; then
133+
echo "Certificate:"
134+
echo "$OUT_CRT" | jq
135+
136+
echo "CertificateRequest:"
137+
echo "$OUT_CRQ" | jq .items[0].status.conditions
138+
139+
if [ $(echo "$OUT_CRT" | grep -iE "Failed|Denied" | wc -l) -gt 0 ]; then
134140
echo "::Error title=Certificate resource errored::The certificate ressource has an error"
135141
exit 1
136142
fi
@@ -139,7 +145,7 @@ jobs:
139145
echo "Certificate is ready after $(( $(date +%s) - $start )) seconds"
140146
exit 0
141147
fi
142-
sleep 10
148+
sleep 20
143149
echo -e "\n[i] New iteration at $(date)"
144150
done
145151

0 commit comments

Comments
 (0)