Skip to content

Commit 801bd20

Browse files
committed
fix: only update k8s version in go-v4
1 parent 1ae7c0b commit 801bd20

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

pkg/plugins/golang/v3/commons.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ manifests: controller-gen`
7979
}
8080

8181
if err := util.ReplaceInFile("Makefile",
82-
"ENVTEST_K8S_VERSION = 1.27.1",
82+
"ENVTEST_K8S_VERSION = 1.26.1",
8383
"ENVTEST_K8S_VERSION = 1.21"); err != nil {
8484
log.Warnf("unable to update the Makefile with %s: %s", "ENVTEST_K8S_VERSION = 1.21", err)
8585
}

pkg/plugins/golang/v3/scaffolds/internal/templates/makefile.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ const makefileTemplate = `
6262
# Image URL to use all building/pushing image targets
6363
IMG ?= {{ .Image }}
6464
# ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary.
65-
ENVTEST_K8S_VERSION = 1.27.1
65+
ENVTEST_K8S_VERSION = 1.26.1
6666
6767
# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)
6868
ifeq (,$(shell go env GOBIN))

testdata/project-v3/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Image URL to use all building/pushing image targets
33
IMG ?= controller:latest
44
# ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary.
5-
ENVTEST_K8S_VERSION = 1.27.1
5+
ENVTEST_K8S_VERSION = 1.26.1
66

77
# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)
88
ifeq (,$(shell go env GOBIN))

0 commit comments

Comments
 (0)