Giter VIP home page Giter VIP logo

Comments (4)

nicks avatar nicks commented on June 13, 2024

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.

peter-mcclonski avatar peter-mcclonski commented on June 13, 2024

@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.

nicks avatar nicks commented on June 13, 2024

ya, i guess we'd accept a --create-namespace flag that mirrors the helm flag behavior

from tilt.

peter-mcclonski avatar peter-mcclonski commented on June 13, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.