Skip to content

Add helper for local dev workflow#203

Draft
modulo11 wants to merge 4 commits intomainfrom
dev-workflow
Draft

Add helper for local dev workflow#203
modulo11 wants to merge 4 commits intomainfrom
dev-workflow

Conversation

@modulo11
Copy link
Contributor

@modulo11 modulo11 commented Mar 6, 2026

Tool to simplify the workflow for local development. The script asks for the release and project the developer is working on. It also manipulates the default values.yaml of the respective release to point to the locally build image. This is not too nice, but the (I think) most convenient way for a developer. If we're happy with the current state, I'd also update the development guide to use this and build a docker image for simple usage.

Example for routing/gorouter:

❯ python scripts/dev.py
? Which release are you working on? routing
? Which project are you working on? gorouter
Here are some instructions to build a local image and load it into the cluster. Make sure to replace <path-to-release> with the actual path to the release you are working on.
Docker will ask for confirmation to access the local file system, please allow it to do so.

docker buildx bake gorouter --set gorouter.contexts.src=<path-to-routing-release>/src
kind load docker-image gorouter:latest --name cfk8s
make up
--- a/releases/routing/helm/values.yaml
+++ b/releases/routing/helm/values.yaml
@@ -7,8 +7,8 @@ gorouter:
   isolationSegments: []
   routingTableShardingMode: all
   image:
-    repository: ghcr.io/cloudfoundry/k8s/gorouter
-    tag: ""
+    repository: gorouter
+    tag: "latest"
     imagePullPolicy: IfNotPresent
   nodeSelector: ~
   tolerations: ~

@modulo11 modulo11 requested a review from a team as a code owner March 6, 2026 13:02
@modulo11 modulo11 marked this pull request as draft March 6, 2026 13:02
print()
print(f"docker buildx bake {project} --set {project}.contexts.src=<path-to-{release}-release>/src")
print(f"kind load docker-image {latest_tag} --name cfk8s")
print("make up")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we align it with the docs/local-development-guide? There, we do not use make up, but change it in the cluster.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes of course. I just wanted to get feedback on the idea and approach before touching too many parts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants