Skip to content

Commit b459ccc

Browse files
committed
chore: update dev makefile and doc for operator image loading
1 parent 34f93fd commit b459ccc

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,12 +271,14 @@ dev-deploy: dev ## Deploy KOF umbrella chart with local development configuratio
271271
if [ "$(SKIP_WAIT)" != "true" ]; then \
272272
echo "Wait for helmreleases readiness ..."; \
273273
$(KUBECTL) wait --for=condition=Ready helmreleases --all -n kof --timeout=10m; \
274-
echo "Restarting kof-operator to pick up new image..."; \
275-
$(KUBECTL) rollout restart -n kof deployment/kof-mothership-kof-operator || true; \
276274
else \
277275
echo "⚠️ Skipping wait for helmreleases"; \
278276
fi; \
279277
fi
278+
@if [ -z "$(HELM_CHART_NAME)" ] || [ "$(HELM_CHART_NAME)" = "kof-mothership" ]; then \
279+
echo "Restarting kof-operator to pick up new image..."; \
280+
$(KUBECTL) rollout restart -n kof deployment/kof-mothership-kof-operator || true; \
281+
fi
280282

281283
.PHONY: dev-kcm-region-deploy-cloud
282284
dev-kcm-region-deploy-cloud: dev ## Deploy kcm region cluster using k0rdent

docs/dev.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,8 @@ helm upgrade --create-namespace --install --wait k0rdent-istio ./charts/k0rdent-
8282
* Deploy KOF using the Helm chart with local values:
8383

8484
```bash
85-
helm upgrade -i kof ./charts/kof \
86-
--namespace kof \
87-
--create-namespace \
88-
-f ./charts/kof/values-local.yaml
85+
make dev-deploy
86+
# make dev-deploy HELM_CHART_NAME=kof-regional # to redeploy a single helm chart during development
8987
```
9088

9189
* Monitor the installation progress:

0 commit comments

Comments
 (0)