Skip to content

Commit

Permalink
Merge pull request #3163 from chrischdi/pr-e2e-runtime-sdk-ubuntu-2404
Browse files Browse the repository at this point in the history
🌱 test: use ubuntu 24.04 in Runtime SDK test
  • Loading branch information
k8s-ci-robot authored Aug 22, 2024
2 parents 988499a + c75890f commit 75a5e72
Showing 1 changed file with 5 additions and 4 deletions.
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

0 comments on commit 75a5e72

Please sign in to comment.