Giter Site home page Giter Site logo

Comments (6)

aeneasr avatar aeneasr commented on May 20, 2024

So would it be enough to simply remove the if namespace? Personally, I think it's not our task to educate developers on Kubernetes and/or helm best practices. We should provide the capabilities of following those best practices but make default one-off installations helm install [-set demo=true] ory/hydra very easy

from k8s.

ermik avatar ermik commented on May 20, 2024

Yes, I think we should remove the if namespace conditionals. Then, we have a couple of options:

  1. noop: do nothing more; helm writes the namespace key by default, and kubelet would add default if manifest was missing the namespace key

  2. neutral: we can specify that developers should deploy sensitive resources separately) in the chart documentation and values file — but it's is up to them to figure out the way to do it

  3. proactive: drop silent dependency on .Release.Namespace (keeping it as a fallback) and guide/enable users to separate resources into multiple namespaces via values.yaml:

    namespaces: 
        internal: "security"
        external: "edge"

    (e.g. Ingress would go into external, Deployment, ConfigMap, Secret — internal).

    If not specified — all resources will be deployed to .Release.Namespace which comes from either --namespace argument or is default.

  4. extreme: enforce namespacing of resources by removing Release.Namespace fallback for sensitive objects — either:

    • require internal to be specified in values.yaml
      OR
    • prohibit use of default regardless of where it was specified.

from k8s.

aeneasr avatar aeneasr commented on May 20, 2024

The noop only works with helm install, not helm template, which is why it was added in the first place!

from k8s.

ermik avatar ermik commented on May 20, 2024

I implemented the noop changes in #21 and it seems to work correctly when running helm template (see the rendering I posted). Let me know your thoughts.

from k8s.

aeneasr avatar aeneasr commented on May 20, 2024

I think we can close this, right? :)

from k8s.

ermik avatar ermik commented on May 20, 2024

Yup. Further improvements via follow up (you could open it as RFC / Feedback)

from k8s.

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.