File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ CONTROLLER_IAM_POLICY_ARN="" # will be fulfilled during setup_controller_iam_sa
31
31
# Cluster settings
32
32
EKSCTL_VERSION=" v0.100.0"
33
33
CLUSTER_NAME=" lb-controller-e2e-${PULL_NUMBER} -$BUILD_ID "
34
- CLUSTER_VERSION=${CLUSTER_VERSION:- " 1.19 " }
34
+ CLUSTER_VERSION=${CLUSTER_VERSION:- " 1.21 " }
35
35
CLUSTER_INSTANCE_TYPE=" m5.xlarge"
36
36
CLUSTER_NODE_COUNT=" 4"
37
37
CLUSTER_KUBECONFIG=${CLUSTER_KUBECONFIG:- " /tmp/lb-controller-e2e/clusters/${CLUSTER_NAME} .kubeconfig" }
@@ -235,6 +235,18 @@ test_controller_image() {
235
235
--certificate-arns=${CERTIFICATE_ARNS}
236
236
}
237
237
238
+
239
+ # ######################################
240
+ # Dump controller logs
241
+ # Globals:
242
+ # None
243
+ # Arguments:
244
+ # None
245
+ # ######################################
246
+ dump_controller_logs () {
247
+ kubectl --kubeconfig=${CLUSTER_KUBECONFIG} logs --tail=-1 -l app.kubernetes.io/name=aws-load-balancer-controller -n kube-system
248
+ }
249
+
238
250
# ######################################
239
251
# Cleanup resources
240
252
# Globals:
@@ -244,6 +256,7 @@ test_controller_image() {
244
256
# ######################################
245
257
cleanup () {
246
258
sleep 60
259
+ dump_controller_logs || true
247
260
cleanup_cluster
248
261
cleanup_controller_iam_sa
249
262
}
You can’t perform that action at this time.
0 commit comments