Repository navigation
ci: set default Kubernetes version dynamically via Makefile - #115
aswinsreeraj wants to merge 3 commits into
Conversation
|
@aswinsreeraj thanks for the PR, we have some CI issues which I hope we can fix today. After, we can finally run your change. But the PR looks great to me! |
|
@aswinsreeraj please rebase. it will trigger the ci |
|
@HarshwardhanPatil07 I have rebased the commit. Please approve the changes. |
Hardcoding the default Kubernetes minor version (1.35) in the integration-tests workflow forces manual search-and-replace updates across multiple files when bumping versions. Add a `print-kube-minor` target to `node-images/fedora/Makefile` to make the Makefile the single source of truth for the default Kubernetes version, and invoke it dynamically in GitHub Actions (`integration-tests.yml`). Closes bootc-dev#87 Signed-off-by: Aswin Sreeraj <aswinsreeraj96@gmail.com>
8beef37 to
4316ab7
Compare
|
ci seems to be unhappy, please do the needful |
Signed-off-by: Aswin Sreeraj <aswinsreeraj96@gmail.com>
|
@HarshwardhanPatil07 CI issue has been fixed. Please review. |
| ALL=$(curl -s https://endoflife.date/api/kubernetes.json | \ | ||
| jq -c '[.[] | select(.eol > (now | strftime("%Y-%m-%d"))) | .cycle][:3]') |
There was a problem hiding this comment.
after discussion: this approach will introduce ci regressions and best way to do for now is with renovate
There was a problem hiding this comment.
Good catch, thanks! I've updated the PR in #115 to restore the static ALL list (["1.37", "1.36", "1.35"]) and the Renovate # TODO in .github/workflows/integration-tests.yml.
The PR now only derives DEFAULT from node-images/fedora/Makefile via make -s -C node-images/fedora print-kube-minor (with actions/checkout in supported-versions), keeping ALL static so new Kubernetes releases don't break unrelated PRs before images are built and tested.
Signed-off-by: Aswin Sreeraj <aswinsreeraj96@gmail.com>
Previously, the default Kubernetes version (
1.35) was hardcoded in.github/workflows/integration-tests.yml. This created duplication withnode-images/fedora/MakefilewhereKUBE_MINOR ?= 1.35is defined.This PR makes
node-images/fedora/Makefilethe single source of truth forKUBE_MINOR:print-kube-minortarget to.PHONYinnode-images/fedora/Makefile.integration-tests.ymlto dynamically queryDEFAULT=$(make -s -C node-images/fedora print-kube-minor).Fixes #87