Comments (4)
hmmm...i'm not sure we should do this.
The tilt --namespace
flag is indented to map to kubectl --namespace
. In kubectl, it sets the default namespace for API requests - https://pkg.go.dev/k8s.io/[email protected]/tools/clientcmd/api/v1#Context
kubectl --namespace=... apply
does not auto-create the namespace.
Helm has a separate --create-namespace
flag, which you can simulate in tilt as:
namespace_create(k8s_namespace())
from tilt.
@nicks Fair concerns. Regardless, I would make the case that this is a reasonable quality-of-life improvement. If tying it directly to the --namespace
flag is undesirable, perhaps adding a separate tilt --create-namespace
flag to be analogous to the underlying helm --create-namespace
flag?
I would make the argument that the current reliance namespace_create(k8s_namespace())
is non-intuitive, and contrasts with the linked tilt feature announcement. The --namespace
flag being provided out of the box contrasts with the need to load a separate extension for namespace_create(...)
. At minimum, if specifying the --namespace
flag and the namespace does not exist, I would expect to see the initial tilt up fail immediately.
from tilt.
ya, i guess we'd accept a --create-namespace flag that mirrors the helm flag behavior
from tilt.
To make sure we're on the same page-- I'm thinking that this would be a tilt flag on the up
command. For instance, tilt up --create-namespace
. The flag would be meaningless (and provide an associated error) if not paired with the --namespace
flag, and it would result in the namespace being created prior to the actual contents of the Tiltfile being processed.
from tilt.
Related Issues (20)
- Docker compose profiles set to * doesn't work HOT 5
- Tilt tries to push to docker registry when used with rootless docker + minikube HOT 4
- livenessProbeProbe returns Connection Refused HOT 1
- [Bug] Unable to call commands on host from within `workload_to_resource_function` method HOT 2
- Override auto_init for `tilt ci` HOT 2
- Feature Request: Support Gitlab subgroups within an extension repo's URL HOT 2
- Make it Scoopable HOT 1
- How to Starlark here to config it? HOT 1
- missing argument for echo_off HOT 1
- split service from workload resource
- Graceful shutdown is ignored by Tilt HOT 3
- tty in local_resource kills tilt HOT 2
- Log pane scrolls to top when truncating
- live update doesn't work with jobset HOT 2
- ability to wait on crd deletion before deleting operator
- tty in node in local_resource kills tilt
- Cluster status error since 0.33.9 with eks cluster HOT 3
- dockerignore with globs creates empty folders HOT 1
- Docker Push not skipped when using Docker Desktop 4.31 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tilt.