fix: Use go install Kustomize
@@ -526,14 +526,7 @@ endif
kustomize:
ifeq (, $(shell command -v kustomize 2> /dev/null))
- @{ \
- set -e ;\
- KUSTOMIZE_GEN_TMP_DIR=$$(mktemp -d) ;\
- cd $$KUSTOMIZE_GEN_TMP_DIR ;\
- go mod init tmp ;\
- go get sigs.k8s.io/kustomize/kustomize/v4@$(KUSTOMIZE_VERSION) ;\
- rm -rf $$KUSTOMIZE_GEN_TMP_DIR ;\
- }
+ go install sigs.k8s.io/kustomize/kustomize/v4@$(KUSTOMIZE_VERSION)
KUSTOMIZE=$(GOBIN)/kustomize
else
KUSTOMIZE=$(shell command -v kustomize 2> /dev/null)
