File tree 1 file changed +11
-5
lines changed
1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change 13
13
test :
14
14
runs-on : ubuntu-latest
15
15
strategy :
16
- max-parallel : 2
16
+ max-parallel : 3
17
17
matrix :
18
18
# Always quote versions to prevent int truncation (1.30 -> 1.3)
19
19
# https://kubernetes.io/releases
@@ -127,10 +127,16 @@ jobs:
127
127
start=$(date +%s)
128
128
129
129
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)
132
132
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
134
140
echo "::Error title=Certificate resource errored::The certificate ressource has an error"
135
141
exit 1
136
142
fi
@@ -139,7 +145,7 @@ jobs:
139
145
echo "Certificate is ready after $(( $(date +%s) - $start )) seconds"
140
146
exit 0
141
147
fi
142
- sleep 10
148
+ sleep 20
143
149
echo -e "\n[i] New iteration at $(date)"
144
150
done
145
151
You can’t perform that action at this time.
0 commit comments