From 075db7af3ef347f83a0ad2a6f5c8f019b656dd1a Mon Sep 17 00:00:00 2001
From: Martin Schuppert <mschuppert@redhat.com>
Date: Tue, 3 Dec 2024 14:40:32 +0100
Subject: [PATCH] Use conditional assignment for BRANCH

Signed-off-by: Martin Schuppert <mschuppert@redhat.com>
---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 8d791fa..1ce0923 100644
--- a/Makefile
+++ b/Makefile
@@ -367,7 +367,7 @@ run-with-webhook: manifests generate fmt vet ## Run a controller from your host.
 	/bin/bash hack/run_with_local_webhook.sh
 
 CRD_SCHEMA_CHECKER_VERSION ?= release-4.16
-BRANCH=main
+BRANCH ?= main
 
 PHONY: crd-schema-check
 crd-schema-check: manifests