From 39c04d871f801e499356939ece8295cd899d6eef Mon Sep 17 00:00:00 2001 From: Gianluca Mardente Date: Wed, 29 Jul 2026 08:06:31 +0200 Subject: [PATCH] chore: Make deploy-projectsveltos's image-loading step overridable --- Makefile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index df9277f7..a34d74d9 100644 --- a/Makefile +++ b/Makefile @@ -488,10 +488,19 @@ deploy-crds: $(KUBECTL) ## Install libsveltos CRDs $(KUBECTL) apply -f https://raw.githubusercontent.com/projectsveltos/libsveltos/$(TAG)/manifests/apiextensions.k8s.io_v1_customresourcedefinition_reloaderreports.lib.projectsveltos.io.yaml +# Overridable so callers who already built, loaded, and patched the manifests for their own +# image can skip load-image's rebuild - which would otherwise call docker-build's own +# set-manifest-image and overwrite whatever image patch those callers already set - by +# passing LOAD_IMAGE_TARGET=noop. +LOAD_IMAGE_TARGET ?= load-image + +.PHONY: noop +noop: ## Does nothing; see LOAD_IMAGE_TARGET above. + deploy-projectsveltos: $(KUSTOMIZE) $(ENVSUBST) $(KUBECTL) # Load projectsveltos image into cluster @echo 'Load projectsveltos image into cluster' - $(MAKE) load-image + $(MAKE) $(LOAD_IMAGE_TARGET) $(MAKE) deploy-crds