From 47c6c51c927f3d908d202ead0c42201a1bf42fee Mon Sep 17 00:00:00 2001 From: Carlos de Paula Date: Thu, 9 Jan 2025 11:54:28 -0300 Subject: [PATCH] fix makefile check --- Makefile | 11 +++++------ .../lbconfig-operator.clusterserviceversion.yaml | 2 +- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index d3e5dd6..1cd029d 100644 --- a/Makefile +++ b/Makefile @@ -350,13 +350,12 @@ catalog-push: catalog-build ## Push a catalog image. olm-validate: bundle-push catalog-push ## Validates the bundle image. operator-sdk bundle validate -b $(BUILDER) $(BUNDLE_IMG) +.PHONY: testenv-setup +testenv-setup: kind ## Setup the test environment (KIND cluster) + $(KIND) get clusters | grep -q test-operator || $(KIND) create cluster --name test-operator + .PHONY: olm-run -olm-run: olm-validate kind ## Runs the bundle image in a KIND cluster -ifeq ($(shell $(KIND) get clusters > /dev/null 2>&1), test-operator) - @echo "Cluster already running" -else - $(shell $(KIND) create cluster --name test-operator > /dev/null 2>&1) -endif +olm-run: olm-validate testenv-setup ## Runs the bundle image in a KIND cluster kubectl config use-context kind-test-operator operator-sdk olm install --version=$(OLM_VERSION) --timeout=5m || true operator-sdk run bundle $(BUNDLE_IMG) --timeout=5m diff --git a/bundle/manifests/lbconfig-operator.clusterserviceversion.yaml b/bundle/manifests/lbconfig-operator.clusterserviceversion.yaml index 39ba341..be9859b 100644 --- a/bundle/manifests/lbconfig-operator.clusterserviceversion.yaml +++ b/bundle/manifests/lbconfig-operator.clusterserviceversion.yaml @@ -98,7 +98,7 @@ metadata: categories: Networking certified: "false" containerImage: quay.io/carlosedp/lbconfig-operator:v0.5.1 - createdAt: "2025-01-09T14:09:12Z" + createdAt: "2025-01-09T14:53:50Z" description: Manage External Load Balancers allowing creation/update for VIPs and Servers dynamically via API. k8sMaxVersion: ""