We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2d9b8ad + f2b7c49 commit 62a5f81Copy full SHA for 62a5f81
1 file changed
modules/kind/00_mod.mk
@@ -17,5 +17,17 @@ include $(dir $(lastword $(MAKEFILE_LIST)))/00_kind_image_versions.mk
17
images_amd64 ?=
18
images_arm64 ?=
19
20
+# K8S_VERSION can be used to specify a specific
21
+# kubernetes version to use with Kind.
22
+K8S_VERSION ?=
23
+ifeq ($(K8S_VERSION),)
24
images_amd64 += $(kind_image_latest_amd64)
25
images_arm64 += $(kind_image_latest_arm64)
26
+else
27
+fatal_if_undefined = $(if $(findstring undefined,$(origin $1)),$(error $1 is not set))
28
+$(call fatal_if_undefined,kind_image_kube_$(K8S_VERSION)_amd64)
29
+$(call fatal_if_undefined,kind_image_kube_$(K8S_VERSION)_arm64)
30
+
31
+images_amd64 += $(kind_image_kube_$(K8S_VERSION)_amd64)
32
+images_arm64 += $(kind_image_kube_$(K8S_VERSION)_arm64)
33
+endif
0 commit comments