File tree 1 file changed +13
-2
lines changed
1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ Delete Namespace
44
44
[Documentation] Remove gateway api specific namespace.
45
45
Remove Namespace ${NS_GATEWAY }
46
46
47
- Create Gateway
47
+ Create Gateway # robocop: disable=too-many-calls-in-keyword
48
48
[Documentation] Create a gateway using given hostname and port. Waits for readiness
49
49
[Arguments] ${hostname } ${port } ${namespace }
50
50
${tmp } = Set Variable /tmp/gateway.yaml
@@ -55,7 +55,18 @@ Create Gateway
55
55
Generate File From Template ${GATEWAY_MANIFEST_TMPL } ${tmp }
56
56
Oc Apply -n ${namespace } -f ${tmp }
57
57
Oc Wait -n ${namespace } gateway/test-gateway --for="condition=Accepted" --timeout=120s
58
- Oc Wait -n ${namespace } deploy test-gateway-openshift-gateway-api --for=condition=Available --timeout=120s
58
+ TRY
59
+ Oc Wait
60
+ ... -n ${namespace } deploy test-gateway-openshift-gateway-api
61
+ ... --for=condition=Available --timeout=120s
62
+ EXCEPT
63
+ Run With Kubeconfig oc get deploy -n ${namespace } allow_fail=${TRUE }
64
+ Run With Kubeconfig oc get events -n ${namespace } --sort-by='.lastTimestamp' allow_fail=${TRUE }
65
+ Run With Kubeconfig oc describe -n ${namespace } gateway/test-gateway allow_fail=${TRUE }
66
+ Run With Kubeconfig oc logs -n openshift-gateway-api deploy/istiod-openshift-gateway-api
67
+ ... allow_fail=${TRUE }
68
+ Fail Waiting for deployment timed out
69
+ END
59
70
Oc Wait -n ${namespace } gateway/test-gateway --for="condition=Programmed" --timeout=120s
60
71
61
72
Create HTTP Route
You can’t perform that action at this time.
0 commit comments