diff --git a/.github/workflows/test-kr8s.yaml b/.github/workflows/test-kr8s.yaml index 55f96dab..a0ecdbe8 100644 --- a/.github/workflows/test-kr8s.yaml +++ b/.github/workflows/test-kr8s.yaml @@ -23,7 +23,7 @@ jobs: fail-fast: false matrix: python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] - kubernetes-version: ["1.29.0"] + kubernetes-version: ["1.29.1"] include: - python-version: '3.10' kubernetes-version: 1.28.0 diff --git a/.github/workflows/test-kubectl-ng.yaml b/.github/workflows/test-kubectl-ng.yaml index afae4807..a2f6a9eb 100644 --- a/.github/workflows/test-kubectl-ng.yaml +++ b/.github/workflows/test-kubectl-ng.yaml @@ -21,7 +21,7 @@ jobs: fail-fast: false matrix: python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] - kubernetes-version: ["1.29.0"] + kubernetes-version: ["1.29.1"] include: - python-version: '3.10' kubernetes-version: 1.28.0 diff --git a/ci/update-kubernetes.py b/ci/update-kubernetes.py index 4fb0b6a7..702e1555 100755 --- a/ci/update-kubernetes.py +++ b/ci/update-kubernetes.py @@ -36,17 +36,22 @@ def get_versions(): data.sort(key=lambda x: x["eol"], reverse=True) print("Loading Kubernetes tags from https://hub.docker.com/r/kindest/node/tags...") - with urllib.request.urlopen( - "https://hub.docker.com/v2/repositories/kindest/node/tags" - ) as url: - container_tags = json.load(url) + + container_tags = [] + next_url = "https://hub.docker.com/v2/repositories/kindest/node/tags" + while next_url: + with urllib.request.urlopen(next_url) as url: + results = json.load(url) + container_tags += results["results"] + if "next" in results and results["next"]: + next_url = results["next"] + else: + next_url = None for version in data: try: version["latest_kind_container"] = [ - x["name"] - for x in container_tags["results"] - if version["cycle"] in x["name"] + x["name"] for x in container_tags if version["cycle"] in x["name"] ][0][1:] except IndexError: version["latest_kind_container"] = None