From c8ca97cfb80397f616bfacaa59ed24062c5b88b5 Mon Sep 17 00:00:00 2001 From: Shunpoco Date: Thu, 25 Jan 2024 23:19:02 +0000 Subject: [PATCH 1/2] Modify: change README to address the current situation. Currently, we need to build and load images ourselves becuse ghcr.io is private repository. Signed-off-by: Shunsuke Tokunaga --- README.md | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index cc526077..60033aac 100644 --- a/README.md +++ b/README.md @@ -81,13 +81,30 @@ to have _you_ join us in iterating on it and helping us build it together! > (KIND)][kind] clusters. You can generate a new development cluster for > testing with `make build.cluster`. -Deploy [Gateway API][gwapi] [CRDs][crds]: +> **Note**: Currently our container images are under migration from a private repository. +> At this moment, you should build and load images yourself. + +1. Deploy [Gateway API][gwapi] [CRDs][crds]: ```console kubectl apply -k https://github.com/kubernetes-sigs/gateway-api/config/crd/experimental?ref=v0.8.1 ``` -Deploy: +2. Build Blixt images: + +```console +make build.all.images TAG=latest +``` + +3. Load images into your Kind cluster: + +```console +make load.all.images TAG=latest +``` +You may get an error like `Error from server (NotFound): namespaces "blixt-system" not found`, but please ignore it at this moment. The entire resources are created in the next step. + + +4. Deploy Blixt: ```console kubectl apply -k config/default From 938c6866b583745402c5bf704161bfba9e141994 Mon Sep 17 00:00:00 2001 From: Shunpoco Date: Fri, 26 Jan 2024 21:58:22 +0000 Subject: [PATCH 2/2] Modify: Check if resource is already deployed, then restart it Signed-off-by: Shunsuke Tokunaga --- Makefile | 6 ++++-- README.md | 2 -- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index d09764b1..49a2d03b 100644 --- a/Makefile +++ b/Makefile @@ -331,11 +331,13 @@ build.cluster: $(KTF) # builds a KIND cluster which can be used for testing and .PHONY: load.image load.image: build.image kind load docker-image $(BLIXT_CONTROLPLANE_IMAGE):$(TAG) --name $(KIND_CLUSTER) && \ - kubectl -n blixt-system rollout restart deployment blixt-controlplane + kubectl -n blixt-system get deployment blixt-controlplane >/dev/null 2>&1 && \ + kubectl -n blixt-system rollout restart deployment blixt-controlplane || true .PHONY: load.all.images load.all.images: build.all.images kind load docker-image $(BLIXT_CONTROLPLANE_IMAGE):$(TAG) --name $(KIND_CLUSTER) && \ kind load docker-image $(BLIXT_DATAPLANE_IMAGE):$(TAG) --name $(KIND_CLUSTER) && \ kind load docker-image $(BLIXT_UDP_SERVER_IMAGE):$(TAG) --name $(KIND_CLUSTER) && \ - kubectl -n blixt-system rollout restart deployment blixt-controlplane + kubectl -n blixt-system get deployment blixt-controlplane >/dev/null 2>&1 && \ + kubectl -n blixt-system rollout restart deployment blixt-controlplane || true diff --git a/README.md b/README.md index 60033aac..b4bd20ff 100644 --- a/README.md +++ b/README.md @@ -101,8 +101,6 @@ make build.all.images TAG=latest ```console make load.all.images TAG=latest ``` -You may get an error like `Error from server (NotFound): namespaces "blixt-system" not found`, but please ignore it at this moment. The entire resources are created in the next step. - 4. Deploy Blixt: