From 12a59776c82e117943c5e03966b9572feb8f0576 Mon Sep 17 00:00:00 2001 From: Camila Macedo <7708031+camilamacedo86@users.noreply.github.com> Date: Mon, 18 Nov 2024 09:28:13 +0000 Subject: [PATCH] fix: update kind-load target to support local kind clusters - Replaced the use of 'kind export kubeconfig' and 'kind load docker-image' with a combination of 'docker save' piped to 'kind load image-archive'. - This change ensures that the `kind-load` target works seamlessly with any local kind cluster created by the developer, without relying on a bingo-provided version of kind. Example usage: 1. Create a custom kind cluster: kind create cluster --name catalogd 2. Build and load the container into the cluster: make build-container kind-load This ensures the image is loaded into the correct kind cluster, improving developer flexibility and avoiding conflicts with predefined configurations. --- Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile b/Makefile index cd489533..3060bb52 100644 --- a/Makefile +++ b/Makefile @@ -215,8 +215,7 @@ kind-cluster-cleanup: $(KIND) ## Delete the kind cluster .PHONY: kind-load kind-load: check-cluster $(KIND) ## Load the built images onto the local cluster - $(KIND) export kubeconfig --name $(KIND_CLUSTER_NAME) - $(KIND) load docker-image $(IMAGE) --name $(KIND_CLUSTER_NAME) + docker save $(IMAGE) | $(KIND) load image-archive /dev/stdin --name $(KIND_CLUSTER_NAME) .PHONY: install install: check-cluster build-container kind-load deploy wait ## Install local catalogd to an existing cluster