Skip to content

Commit 1631183

Browse files
committed
build: extract DEFAULT_KUBE_MINOR and add print-var target
Set as default kubernetes version 1.35 in the Makefile to have a central place to define the costant. The print-var will be used by the GHA in the next commit to retrieve the version. Assisted-by: AI Signed-off-by: Alice Frosi <afrosi@redhat.com>
1 parent a69fa27 commit 1631183

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ CONTAINER_TOOL ?= podman
66
BINK_CLUSTER_NAME ?= e2e
77
KUBECONFIG_BINK ?= ./kubeconfig-$(BINK_CLUSTER_NAME)
88
ARTIFACTS ?= $(abspath _output/logs)
9-
BINK_NODE_DISK_IMAGE ?= ghcr.io/bootc-dev/bink/node:v1.35-fedora-44-disk
9+
DEFAULT_KUBE_MINOR ?= 1.35
10+
BINK_NODE_DISK_IMAGE ?= ghcr.io/bootc-dev/bink/node:v$(DEFAULT_KUBE_MINOR)-fedora-44-disk
1011
BINK_LOCAL_REGISTRY_NODE_IMAGE ?= registry.cluster.local:5000/node
1112
# YEAR defines the year value used for substituting the YEAR placeholder in the boilerplate header.
1213
YEAR ?= $(shell date +%Y)
@@ -21,6 +22,9 @@ all: build
2122

2223
##@ General
2324

25+
print-var-%:
26+
@echo $($*)
27+
2428
.PHONY: help
2529
help: ## Display this help.
2630
@awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m<target>\033[0m\n"} /^[a-zA-Z_0-9-]+:.*?##/ { printf " \033[36m%-15s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST)

0 commit comments

Comments
 (0)