@@ -12,7 +12,9 @@ KF_TAG ?= $(KF_TAG)
12
12
CONTAINER_ENGINE ?= podman
13
13
14
14
# ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary.
15
- ENVTEST_K8S_VERSION = 1.26
15
+ # We should try to use the kubernetes version that is used in the oldest OpenShift we support: https://access.redhat.com/solutions/4870701
16
+ # Right now we target the OCP 4.15 as the oldest one: https://access.redhat.com/articles/rhoai-supported-configs
17
+ ENVTEST_K8S_VERSION = 1.28
16
18
17
19
# Kubernetes configuration
18
20
K8S_NAMESPACE ?= odh-notebook-controller-system
@@ -232,17 +234,19 @@ $(LOCALBIN): ## Ensure that the directory exists
232
234
CONTROLLER_GEN = $(LOCALBIN ) /controller-gen
233
235
.PHONY : controller-gen
234
236
controller-gen : # # Download controller-gen locally if necessary.
235
- GOBIN=$(LOCALBIN ) go install sigs.k8s.io/controller-tools/cmd/controller-gen@v0.16.3
237
+ GOBIN=$(LOCALBIN ) go install sigs.k8s.io/controller-tools/cmd/controller-gen@v0.18.0
236
238
237
239
KUSTOMIZE = $(LOCALBIN ) /kustomize
238
240
.PHONY : kustomize
239
241
kustomize : # # Download kustomize locally if necessary.
240
242
GOBIN=
$(LOCALBIN ) go install sigs.k8s.io/kustomize/kustomize/
[email protected]
241
243
242
244
ENVTEST = $(LOCALBIN ) /setup-envtest
245
+ ENVTEST_VERSION? =v0.0.0-20250723164028-948d554cd9c7
246
+
243
247
.PHONY : envtest
244
- envtest : # # Download setup-envtest locally if necessary.
245
- GOBIN=$(LOCALBIN ) go install sigs.k8s.io/controller-runtime/tools/setup-envtest@v0.0.0-20240923090159-236e448db12c
248
+ envtest : # # Download setup-envtest locally if necessary - https://pkg.go.dev/sigs.k8s.io/controller-runtime/tools/setup-envtest#section-readme
249
+ GOBIN=$(LOCALBIN ) go install sigs.k8s.io/controller-runtime/tools/setup-envtest@$( ENVTEST_VERSION )
246
250
247
251
KTUNNEL = $(LOCALBIN ) /ktunnel
248
252
.PHONY : ktunnel
0 commit comments