From 3abd97f0447f635ab6afa2ff14cba5ac8ee33d41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vytautas=20Berta=C5=A1ius?= Date: Sat, 29 Jun 2024 10:01:45 +0300 Subject: [PATCH 1/2] Test --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index db13fa5..d049d94 100644 --- a/README.md +++ b/README.md @@ -759,3 +759,4 @@ operator-sdk cleanup group-sync-operator -n group-sync-operator oc delete operatorgroup operator-sdk-og oc delete catalogsource group-sync-operator-catalog ``` + From 576b3310486cbe20ebacee3f57506722628638e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vytautas=20Berta=C5=A1ius?= Date: Sun, 30 Jun 2024 14:19:58 +0300 Subject: [PATCH 2/2] Fix file existence tests in Makefile --- Makefile | 4 ++-- README.md | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 00b7007..533d3c9 100644 --- a/Makefile +++ b/Makefile @@ -210,13 +210,13 @@ CONTROLLER_TOOLS_VERSION ?= v0.10.0 .PHONY: controller-gen controller-gen: $(CONTROLLER_GEN) ## Download controller-gen locally if necessary. $(CONTROLLER_GEN): $(LOCALBIN) - GOBIN=$(LOCALBIN) go install sigs.k8s.io/controller-tools/cmd/controller-gen@$(CONTROLLER_TOOLS_VERSION) + test -s $(LOCALBIN)/controller-gen || GOBIN=$(LOCALBIN) go install sigs.k8s.io/controller-tools/cmd/controller-gen@$(CONTROLLER_TOOLS_VERSION) KUSTOMIZE_INSTALL_SCRIPT ?= "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" .PHONY: kustomize kustomize: $(KUSTOMIZE) ## Download kustomize locally if necessary. $(KUSTOMIZE): $(LOCALBIN) - curl -s $(KUSTOMIZE_INSTALL_SCRIPT) | bash -s -- $(subst v,,$(KUSTOMIZE_VERSION)) $(LOCALBIN) + test -s $(LOCALBIN)/kustomize || curl -s $(KUSTOMIZE_INSTALL_SCRIPT) | bash -s -- $(subst v,,$(KUSTOMIZE_VERSION)) $(LOCALBIN) .PHONY: envtest envtest: $(ENVTEST) ## Download envtest-setup locally if necessary. diff --git a/README.md b/README.md index d049d94..db13fa5 100644 --- a/README.md +++ b/README.md @@ -759,4 +759,3 @@ operator-sdk cleanup group-sync-operator -n group-sync-operator oc delete operatorgroup operator-sdk-og oc delete catalogsource group-sync-operator-catalog ``` -