From 755f6305b9d0b72884e769775276f3f76cd2ffb1 Mon Sep 17 00:00:00 2001 From: Ilya Hontarau Date: Fri, 29 Mar 2024 14:06:41 +0100 Subject: [PATCH] Fix load docker image doc (#96) On kind version 0.22.0, with this command: `kind load docker-image ghcr.io/aenix-io/etcd-operator:latest`, Kind uses defualt cluster name, but before we created cluster with `--name etcd-operator-kind` --- HOW-TO-START-DEVELOPMENT.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/HOW-TO-START-DEVELOPMENT.md b/HOW-TO-START-DEVELOPMENT.md index c7429bb1..0916fb2a 100644 --- a/HOW-TO-START-DEVELOPMENT.md +++ b/HOW-TO-START-DEVELOPMENT.md @@ -12,14 +12,14 @@ 4. Install cert-manager (it creates certificate k8s secrets). Refer to the [docs](https://cert-manager.io/docs/installation/helm/#4-install-cert-manager). 5. Build docker image *controller:latest* `make docker-build`. 6. Retag image to upload to kind cluster with correct name `docker tag controller:latest ghcr.io/aenix-io/etcd-operator:latest`. -7. Load image to kind cluster `kind load docker-image ghcr.io/aenix-io/etcd-operator:latest`. +7. Load image to kind cluster `kind load docker-image --name etcd-operator-kind ghcr.io/aenix-io/etcd-operator:latest`. 8. Install CRDs `make install`. 9. Deploy operator, RBAC, webhook certs `make deploy`. To deploy your code changes 1. Rebuild the image `make docker-build`. 2. Retag image to upload to kind cluster with correct name `docker tag controller:latest ghcr.io/aenix-io/etcd-operator:latest`. -3. Load image to kind cluster `kind load docker-image ghcr.io/aenix-io/etcd-operator:latest`. +3. Load image to kind cluster `kind load docker-image --name etcd-operator-kind ghcr.io/aenix-io/etcd-operator:latest`. 4. Redeploy yaml manifests if necessary `make deploy`. 5. Restart etcd-operator `kubectl rollout restart -n etcd-operator-system deploy/etcd-operator-controller-manager`.