Skip to content

Commit

Permalink
Fetch aws-load-balancer-controller logs before deleting (kubernetes-s…
Browse files Browse the repository at this point in the history
…igs#2436)

* Fetch aws-load-balancer-controller logs before deleting

* Fetch logs from all controller pods
  • Loading branch information
cgchinmay authored Jan 19, 2022
1 parent e215215 commit 8974bd4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/e2e/run-canary-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@ echo "Starting the ginkgo test suite"

(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)

# tail=-1 is added so that no logs are truncated
# https://github.com/kubernetes/kubectl/issues/812
echo "Fetch most recent aws-load-balancer-controller logs"
kubectl logs -l app.kubernetes.io/name=aws-load-balancer-controller --container aws-load-balancer-controller --tail=-1 -n kube-system

echo "Delete aws-load-balancer-controller"
helm delete aws-load-balancer-controller -n kube-system --timeout=10m || true

Expand Down

0 comments on commit 8974bd4

Please sign in to comment.