Skip to content

Commit

Permalink
Upgrade kustomize version to v4.5.2
Browse files Browse the repository at this point in the history
The 3.8.x version constantly errors with go modules:
go install sigs.k8s.io/kustomize/kustomize/v3@v3.8.7: sigs.k8s.io/kustomize/kustomize/v3@v3.8.7
        The go.mod file for the module providing named packages contains one or
        more exclude directives. It must not contain directives that would cause
        it to be interpreted differently than if it were the main module.

See kubernetes-sigs/kustomize#3618

This is fixed in kubernetes-sigs/kustomize#4387
and kustomize v4.5.2

In the future, once we will switch to operator-sdk 1.22 there will be a
separate script to install kustomize:
https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh
  • Loading branch information
mbaldessari committed Jul 5, 2022
1 parent 977f082 commit f9223a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ controller-gen: ## Download controller-gen locally if necessary.
KUSTOMIZE = $(shell pwd)/bin/kustomize
.PHONY: kustomize
kustomize: ## Download kustomize locally if necessary.
$(call go-get-tool,$(KUSTOMIZE),sigs.k8s.io/kustomize/kustomize/v3@v3.8.7)
$(call go-get-tool,$(KUSTOMIZE),sigs.k8s.io/kustomize/kustomize/v4@v4.5.2)

ENVTEST = $(shell pwd)/bin/setup-envtest
.PHONY: envtest
Expand Down

0 comments on commit f9223a4

Please sign in to comment.