From b30ddb505ef3be7c61f3b2f63b7db5088d23a9cf Mon Sep 17 00:00:00 2001 From: karlderkaefer Date: Fri, 14 Jun 2024 11:35:12 +0200 Subject: [PATCH] chore: fix kustomize build step (#596) --- Makefile | 2 +- .../pingdomtransaction/pingdom-transaction-monitor_test.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 612c0ad8..43ef1c52 100644 --- a/Makefile +++ b/Makefile @@ -160,7 +160,7 @@ KUSTOMIZE_INSTALL_SCRIPT ?= "https://raw.githubusercontent.com/kubernetes-sigs/k .PHONY: kustomize kustomize: $(KUSTOMIZE) ## Download kustomize locally if necessary. $(KUSTOMIZE): $(LOCALBIN) - curl -s $(KUSTOMIZE_INSTALL_SCRIPT) | bash -s -- $(subst v,,$(KUSTOMIZE_VERSION)) $(LOCALBIN) + @[ -f $(LOCALBIN)/kustomize ] || curl -s $(KUSTOMIZE_INSTALL_SCRIPT) | bash -s -- $(subst v,,$(KUSTOMIZE_VERSION)) $(LOCALBIN) .PHONY: controller-gen controller-gen: $(CONTROLLER_GEN) ## Download controller-gen locally if necessary. diff --git a/pkg/monitors/pingdomtransaction/pingdom-transaction-monitor_test.go b/pkg/monitors/pingdomtransaction/pingdom-transaction-monitor_test.go index 2a00a9a0..423edf94 100644 --- a/pkg/monitors/pingdomtransaction/pingdom-transaction-monitor_test.go +++ b/pkg/monitors/pingdomtransaction/pingdom-transaction-monitor_test.go @@ -48,8 +48,8 @@ func TestAddMonitorWithCorrectValues(t *testing.T) { service.Setup(*provider) m := models.Monitor{ - Name: "google-test", - URL: "https://google.com", + Name: "google-test", + URL: "https://google.com", Config: spec, }