From ee526219d025c107ce888f33d3323eaf622361a5 Mon Sep 17 00:00:00 2001 From: Emmanuel Leroy Date: Mon, 1 May 2023 10:17:13 -0700 Subject: [PATCH] temporary fix for missing 1.26 image --- add_on_k8s_autoscaler.tf | 2 +- tests/tests.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/add_on_k8s_autoscaler.tf b/add_on_k8s_autoscaler.tf index 7162049..5c53eec 100644 --- a/add_on_k8s_autoscaler.tf +++ b/add_on_k8s_autoscaler.tf @@ -3,7 +3,7 @@ # locals { - cluster_autoscaler_supported_k8s_versions = { "1.21" = "1.21.1-3", "1.22" = "1.22.2-4", "1.23" = "1.23.0-4", "1.24" = "1.24.0-5", "1.25" = "1.25.0-6" } # There's no API to get that list. Need to be updated manually + cluster_autoscaler_supported_k8s_versions = { "1.23" = "1.23.0-4", "1.24" = "1.24.0-5", "1.25" = "1.25.0-6", "1.26" = "1.25.0-6" } # There's no API to get that list. Need to be updated manually cluster_autoscaler_image_version = lookup(local.cluster_autoscaler_supported_k8s_versions, local.k8s_major_minor_version, reverse(values(local.cluster_autoscaler_supported_k8s_versions))[0]) cluster_autoscaler_image = "iad.ocir.io/oracle/oci-cluster-autoscaler:${local.cluster_autoscaler_image_version}" cluster_autoscaler_log_level_verbosity = 4 diff --git a/tests/tests.sh b/tests/tests.sh index 92a2704..95443f9 100755 --- a/tests/tests.sh +++ b/tests/tests.sh @@ -6,6 +6,8 @@ set -e clean_up () { ARG=$? + log INFO "Debug info..." + kubectl get pods -A log INFO "Cleaning up..." destroy_stack || exit 1 exit $ARG