Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🌱 test: use ubuntu 24.04 in Runtime SDK test #3163

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions test/extension/handlers/topologymutation/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Loading