Skip to content

Commit

Permalink
fix makefile check
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosedp committed Jan 9, 2025
1 parent d25a0bd commit 47c6c51
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
11 changes: 5 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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: ""
Expand Down

0 comments on commit 47c6c51

Please sign in to comment.