Skip to content

Commit 8974bd4

Browse files
author
cgchinmay
authored
Fetch aws-load-balancer-controller logs before deleting (kubernetes-sigs#2436)
* Fetch aws-load-balancer-controller logs before deleting * Fetch logs from all controller pods
1 parent e215215 commit 8974bd4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/e2e/run-canary-test.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,11 @@ echo "Starting the ginkgo test suite"
7878

7979
(cd $SCRIPT_DIR && CGO_ENABLED=0 GOOS=$OS_OVERRIDE ginkgo -v -r --timeout 60m --failOnPending -- --kubeconfig=$KUBE_CONFIG_PATH --cluster-name=$CLUSTER_NAME --aws-region=$REGION --aws-vpc-id=$VPC_ID || true)
8080

81+
# tail=-1 is added so that no logs are truncated
82+
# https://github.com/kubernetes/kubectl/issues/812
83+
echo "Fetch most recent aws-load-balancer-controller logs"
84+
kubectl logs -l app.kubernetes.io/name=aws-load-balancer-controller --container aws-load-balancer-controller --tail=-1 -n kube-system
85+
8186
echo "Delete aws-load-balancer-controller"
8287
helm delete aws-load-balancer-controller -n kube-system --timeout=10m || true
8388

0 commit comments

Comments
 (0)