This repository has been archived by the owner on Jul 11, 2023. It is now read-only.
Kubernetes version e2e test doesn't set versions correctly #4659
Labels
area/CI
Related to continuous integration
area/e2e-tests
End-to-end tests
kind/bug
Something isn't working
size/M
7 days (~1.5 week)
Milestone
Bug description: The e2e tests for different Kubernetes versions defined in tests/e2e/e2e_k8s_version_test.go doesn't correctly set Kubernetes versions such that the tests actually run on kind clusters using those versions.
CI logs report a version matching kind's default used for both tests:
Currently, even if the
-kindClusterVersion
flag is passed, the framework always chooses kind's default because, based on my understanding of Ginkgo, the lines setting and resetting the cluster version are run back-to-back before the code inside theIt
block between them. Moving those inside theIt
block doesn't fix the issue because thenTd.ClusterVersion
is being set after the cluster is already provisioned by the framework.Affected area (please mark with X where applicable):
Expected behavior: The specified Kubernetes versions are used for those tests.
Steps to reproduce the bug (as precisely as possible):
Roughly matching the flags used in CI:
Logs then show:
And
docker ps
showskindest/node:v1.23.4
running.Bug report archive:
Environment:
osm version
):kubectl version
):The text was updated successfully, but these errors were encountered: