Skip to content

Commit

Permalink
test/e2e: select last Flatcar version, not first found
Browse files Browse the repository at this point in the history
As we want to use latest possible.

Signed-off-by: Mateusz Gozdek <mgozdek@microsoft.com>
  • Loading branch information
invidian authored and k8s-infra-cherrypick-robot committed Jan 4, 2024
1 parent 9ec0e71 commit f7782c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/e2e/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,7 @@ func resolveFlatcarVersion(config *clusterctl.E2EConfig, versions semver.Version

if version == "latest" {
semver.Sort(versions)
version = versions[0].String()
version = versions[len(versions)-1].String()
}

resolveVariable(config, varName, version)
Expand Down

0 comments on commit f7782c3

Please sign in to comment.