Skip to content

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

Open
aswinsreeraj wants to merge 1 commit into
bootc-dev:mainfrom
aswinsreeraj:set-default-k8s-version
Open

ci: set default Kubernetes version dynamically via Makefile#115
aswinsreeraj wants to merge 1 commit 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

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

1 participant