-
Notifications
You must be signed in to change notification settings - Fork 310
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
freeze KUBECONTEXT for k8s_custom_deploy
#5703
Comments
i'll take a look at this since it came up again today. |
This problem could arise with |
|
Someone using Tilt v0.27.0 just ran into this issue through An idea: perhaps having a |
Describe the Feature You Want
Right now, when tilt shells out in
k8s_custom_deploy
, tilt doesn't do anything to ensure that the script you're invoking is talking to the same kubernetes context that tilt is talking to.This means that if you change the default context outside of tilt, you could accidentally deploy to a prod cluster 😱
Implementation Notes
We should change the cluster reconciler so that when it "resolves" the context, it:
kubectl config view --minify
to a tempdirk8s_custom_deploy
, inject the KUBECONTEXT env variable to point to this new file.The text was updated successfully, but these errors were encountered: