Open znd4 opened 2 months ago
i believe the way it currently works is that tilt
generates a custom kubeconfig for subprocesses to use with only one context, sets the KUBECONFIG environment variable, and helm respects that. No need to pass --kube-context
directly
There doesn't appear to be any bug report here, so I'm going to close this issue. Let me know if I missed something!
Update: this definitely doesn't work as intended, at least for the delete_cmd
part of helm_resource
.
Can we reopen this and #598 ?
Sure, can you add more details on what you tried, what you expected to happen, and what happened instead?
for what it's worth, here are the repro steps i tried:
kubectl config use-context kind-kind
tilt up
in https://github.com/tilt-dev/tilt-extensions/tree/master/helm_resource/testkubectl config use-context dummy
tilt trigger helloworld
Instead, for 2, kubectl config use-context dummy
, then 3 tilt up --context kind-kind
(thx for trying to repro btw :) )
It feels like
helm_resource
should respectk8s_context()
by passing--kube-context={k8s_context()}
(pseudocode) tohelm
. I've got a naive, untested implementation here, but I'm guessing there might be a better, more maintainable solution?