-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Use metadata.yaml to define k8s versions. * Start testing k8s 1.29.
- Loading branch information
1 parent
2bfe0ad
commit 5326a02
Showing
19 changed files
with
36,155 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 11 additions & 17 deletions
28
.circleci/generate_circleci_config.py → bin/generate_circleci_config.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# When adding a new version, look up the most recent patch version on Dockerhub | ||
# https://hub.docker.com/r/kindest/node/tags | ||
test_k8s_versions: | ||
- 1.24.15 | ||
- 1.25.16 | ||
- 1.26.13 | ||
- 1.27.10 | ||
- 1.28.6 | ||
- 1.29.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,14 @@ | ||
from pathlib import Path | ||
|
||
import git | ||
import yaml | ||
|
||
# The top-level path of this repository | ||
git_repo = git.Repo(__file__, search_parent_directories=True) | ||
git_root_dir = Path(git_repo.git.rev_parse("--show-toplevel")) | ||
|
||
with open(f"{git_root_dir}/.circleci/config.yml") as f: | ||
circleci_config = yaml.safe_load(f.read()) | ||
git_root_dir = [x for x in Path(__file__).resolve().parents if (x / ".git").is_dir()][ | ||
-1 | ||
] | ||
|
||
# This should match the major.minor version list in .circleci/generate_circleci_config.py | ||
# Patch version should always be 0 | ||
metadata = yaml.safe_load((Path(git_root_dir) / "metadata.yaml").read_text()) | ||
# replace all patch versions with 0 so we end up with ['1.26.0', '1.27.0'] | ||
supported_k8s_versions = [ | ||
"1.24.0", | ||
"1.25.0", | ||
"1.26.0", | ||
"1.27.0", | ||
"1.28.0", | ||
".".join(x.split(".")[:-1] + ["0"]) for x in metadata["test_k8s_versions"] | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.