Skip to content

ci: set default Kubernetes version dynamically via Makefile - #115

Open
aswinsreeraj wants to merge 3 commits into
bootc-dev:mainfrom
aswinsreeraj:set-default-k8s-version
Open

aswinsreeraj wants to merge 3 commits into
bootc-dev:mainfrom
aswinsreeraj:set-default-k8s-version

Conversation

@aswinsreeraj

Copy link
Copy Markdown

Previously, the default Kubernetes version (1.35) was hardcoded in .github/workflows/integration-tests.yml. This created duplication with node-images/fedora/Makefile where KUBE_MINOR ?= 1.35 is defined.

This PR makes node-images/fedora/Makefile the single source of truth for KUBE_MINOR:

  1. Adds print-kube-minor target to .PHONY in node-images/fedora/Makefile.
  2. Updates integration-tests.yml to dynamically query DEFAULT=$(make -s -C node-images/fedora print-kube-minor).

Fixes #87

@alicefr

alicefr commented Aug 17, 2026

Copy link
Copy Markdown
Collaborator

@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!

alicefr
alicefr previously approved these changes Aug 19, 2026
@HarshwardhanPatil07

Copy link
Copy Markdown
Member

@aswinsreeraj please rebase. it will trigger the ci

@aswinsreeraj

Copy link
Copy Markdown
Author

@HarshwardhanPatil07 I have rebased the commit. Please approve the changes.
Apologies for the significant delay.

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>
@aswinsreeraj
aswinsreeraj force-pushed the set-default-k8s-version branch from 8beef37 to 4316ab7 Compare November 23, 2026 18:46
@HarshwardhanPatil07

Copy link
Copy Markdown
Member

ci seems to be unhappy, please do the needful

Signed-off-by: Aswin Sreeraj <aswinsreeraj96@gmail.com>
@aswinsreeraj

aswinsreeraj commented Nov 24, 2026 •

Copy link
Copy Markdown
Author

@HarshwardhanPatil07 CI issue has been fixed. Please review.

Comment thread .github/workflows/integration-tests.yml Outdated
Comment on lines +72 to +73
ALL=$(curl -s https://endoflife.date/api/kubernetes.json | \
jq -c '[.[] | select(.eol > (now | strftime("%Y-%m-%d"))) | .cycle][:3]')

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

after discussion: this approach will introduce ci regressions and best way to do for now is with renovate

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Set default Kubernetes version via Makefile

3 participants