Skip to content

Commit 5c8c46c

Browse files
Update controller-gen from 0.15.0 to 0.18.0
After updating the k8s.io related mods when we tried to generate the manifests using make manifests it failed with ``` /Users/vivek.s/go/pkg/mod/k8s.io/[email protected]/core/v1/doc.go:21:1: missing argument "" (at <input>) /Users/vivek.s/go/pkg/mod/k8s.io/[email protected]/core/v1/doc.go:21:1: missing argument "" (at <input>) k8s.io/api/core/v1:-: unknown type "k8s.io/api/core/v1".LocalObjectReference ``` and other similar issues. It simply meant that the controller-gen version is not compatible with the k8s.io/api version that we have upgraded it to. That's why this commit updates the controller-gen version to 0.18.0.
1 parent 340cf09 commit 5c8c46c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ docker-push:
359359
# Download controller-gen locally if necessary
360360
CONTROLLER_GEN = $(shell pwd)/bin/controller-gen
361361
controller-gen:
362-
$(call go-install-tool,$(CONTROLLER_GEN),sigs.k8s.io/controller-tools/cmd/controller-gen@v0.15.0)
362+
$(call go-install-tool,$(CONTROLLER_GEN),sigs.k8s.io/controller-tools/cmd/controller-gen@v0.18.0)
363363

364364
# Download kustomize locally if necessary
365365
KUSTOMIZE = $(shell pwd)/bin/kustomize

0 commit comments

Comments
 (0)