From c75890fad6fa744e8939337fb52068afcdc025d4 Mon Sep 17 00:00:00 2001 From: Christian Schlotter Date: Wed, 21 Aug 2024 15:56:08 +0200 Subject: [PATCH] test: use ubuntu 24.04 in Runtime SDK test --- test/extension/handlers/topologymutation/handler.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/test/extension/handlers/topologymutation/handler.go b/test/extension/handlers/topologymutation/handler.go index 6ba7bd077c..1067d154e8 100644 --- a/test/extension/handlers/topologymutation/handler.go +++ b/test/extension/handlers/topologymutation/handler.go @@ -339,12 +339,13 @@ func calculateImageName(templateVariables map[string]apiextensionsv1.JSON, isCon return "", err } - // Fallback to the v1.30.0 image, except for v1.28.0 and v1.29.0. - if version != "v1.28.0" && version != "v1.29.0" { - version = "v1.30.0" + // Use known image. + if version == "v1.28.0" || version == "v1.29.0" || version == "v1.30.0" { + return fmt.Sprintf("ubuntu-2204-kube-%s", version), nil } - return fmt.Sprintf("ubuntu-2204-kube-%s", version), nil + // Fallback to ubuntu-2404-kube-v1.31.0 otherwise + return "ubuntu-2404-kube-v1.31.0", nil } // ValidateTopology implements the HandlerFunc for the ValidateTopology hook.