-
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
feat: add k8s_namespace() to pull cached namespace #5935
Conversation
a9a0946
to
e401a63
Compare
Signed-off-by: Nathan Heaps <nathan.heaps@reddit.com>
e401a63
to
537a907
Compare
@@ -5765,7 +5766,7 @@ type fixture struct { | |||
func (f *fixture) newTiltfileLoader() TiltfileLoader { | |||
dcc := dockercompose.NewDockerComposeClient(docker.LocalEnv{}) | |||
|
|||
k8sContextPlugin := k8scontext.NewPlugin(f.k8sContext, f.k8sEnv) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing test coverage, see:
https://sourcegraph.com/github.com/tilt-dev/tilt/-/blob/internal/tiltfile/tiltfile_test.go?L3601:4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
Signed-off-by: Nathan Heaps <nathan.heaps@reddit.com>
af15d86
to
e8862ce
Compare
lgtm, but the build is failing because you need to run |
Thanks @nicks , I wasn't paying attention to that check originally because it wasn't running. Will ping for review once CI passes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! thanks!
This will add a
k8s_namespace()
function to tiltfiles to allow them to fetch the namespace that tilt is configured to use, regardless of if the kubeconfig changes which namespace or context it's targeted at.Still needs docs update
Closes #5934