From 36ad95842aa732815cadc678dda361c5009c76ef Mon Sep 17 00:00:00 2001 From: Dean Roehrich Date: Thu, 19 Oct 2023 16:19:16 -0500 Subject: [PATCH] Update to kustomize v5.1.1 (#55) This is the version that is installed by the current kubebuilder, v3.12.0. There will be a deprecation warning about patchesStrategicMerge, but this can be ignored. This warning is tracked in kubebuilder issue #3539. Signed-off-by: Dean Roehrich --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index b1dbcfa..3bc44ba 100644 --- a/Makefile +++ b/Makefile @@ -103,12 +103,12 @@ $(LOCALBIN): KUSTOMIZE ?= $(LOCALBIN)/kustomize ## Tool Versions -KUSTOMIZE_VERSION ?= v4.5.7 +KUSTOMIZE_VERSION ?= v5.1.1 KUSTOMIZE_INSTALL_SCRIPT ?= "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" .PHONY: kustomize kustomize: $(LOCALBIN) ## Download kustomize locally if necessary. - if [[ ! -s $(LOCALBIN)/kustomize || $$($(LOCALBIN)/kustomize version | awk '{print $$1}' | awk -F/ '{print $$2}') != $(KUSTOMIZE_VERSION) ]]; then \ + if [[ ! -s $(LOCALBIN)/kustomize || ! $$($(LOCALBIN)/kustomize version) =~ $(KUSTOMIZE_VERSION) ]]; then \ rm -f $(LOCALBIN)/kustomize && \ { curl -s $(KUSTOMIZE_INSTALL_SCRIPT) | bash -s -- $(subst v,,$(KUSTOMIZE_VERSION)) $(LOCALBIN); }; \ fi