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
Copy file name to clipboardExpand all lines: .github/workflows/scripts/integration-test-ci
+25-2Lines changed: 25 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -25,17 +25,40 @@ echo "Rancher deployed"
25
25
webhook_deployment_created() {
26
26
kubectl get deployments -n cattle-system | grep rancher-webhook
27
27
}
28
+
29
+
# PANDARIA: Dump detailed info of webhook deployment
30
+
webhook_deployment_available() {
31
+
set -x
32
+
kubectl get pods -A
33
+
echo"---------------------------"
34
+
webhook_pod=$(kubectl get pods -n cattle-system -o jsonpath='{range .items[*]}{.metadata.name}{"\n"}{end}'| grep rancher-webhook)
35
+
kubectl describe pod -n cattle-system $webhook_pod
36
+
echo"------------------------------------"
37
+
kubectl rollout status --watch=true --timeout=10s -n cattle-system deploy/rancher-webhook
38
+
echo"------------------------------------"
39
+
set +x
40
+
}
28
41
try --max 48 --delay 5 --waitmsg "Waiting for a rancher-webhook deployment to be created" --failmsg "Deployment creation failed" webhook_deployment_created
29
42
30
-
try --waitmsg "Waiting for rancher/webhook to be deployed" --failmsg "No rancher/webhook here"kubectl rollout status --watch=true --timeout=10s -n cattle-system deploy/rancher-webhook
43
+
try --max 60 --delay 15 --waitmsg "Waiting for rancher/webhook to be deployed" --failmsg "No rancher/webhook here"webhook_deployment_available
31
44
echo"Rancher deployed"
32
45
33
46
webhook_deployed() {
47
+
# PANDARIA: Dump detailed info of webhook deployment
48
+
set -x
49
+
kubectl get pods -A
50
+
echo"---------------------------"
51
+
webhook_pod=$(kubectl get pods -n cattle-system -o jsonpath='{range .items[*]}{.metadata.name}{"\n"}{end}'| grep rancher-webhook)
52
+
kubectl describe pod -n cattle-system $webhook_pod
53
+
echo"------------------------------------"
54
+
kubectl rollout status --watch=true --timeout=10s -n cattle-system deploy/rancher-webhook
0 commit comments