Should Skyportal block helm upgrade in dev because prod is read-only?
In Skyportal you can give each namespace of a Kubernetes cluster its own environment. Set dev to Dev and prod to Production, and our agent SARA can make changes in dev while anything destructive in prod is blocked before it reaches the cluster.
That works when a command names one namespace. `kubectl -n dev scale deployment/api --replicas=3` binds to dev, so it gets the dev rules.
Some commands don't bind to one namespace: `kubectl apply -f`, anything run with `helm`, `-A`, cluster-scoped kinds. Skyportal decides from the command, and a manifest or a chart can write anywhere, so those get the strictest policy on the cluster. With prod on Production, `helm upgrade` is blocked everywhere, dev included. Reads like `kubectl get pods -A` still run.
It's the safe choice, and it has a cost. A lot of dev work is a Helm release or a manifest. Today you keep those in your own pipeline and give SARA the namespaced work: scale a deployment, restart a rollout, delete a stuck pod.
The other way out is to render the chart or read the manifest first, and allow it when everything lands in dev. That is more to get wrong, and one missed resource is a write in prod.
If dev and prod shared a cluster, would you want an agent to run `helm upgrade` in dev? And would you trust it to check where the chart writes, or keep the block?

p/runevr
p/meridian-16
p/reso
p/producthunt
p/google-cloud-platform
p/htmldrag
p/gatrends
p/beamfy
p/relai-agent-eval-loop
p/kodlo
p/kanasensei
p/phanera
p/netfox
p/transcendence
p/neoagent
p/dearcameo
p/many-displays
p/deardarling
p/dearinside
p/portlivo
Replies
Be the first to reply
Have a question or a thought to share? Add a comment above to start the conversation.