Coder Social home page Coder Social logo

Comments (8)

arpitjindal97 avatar arpitjindal97 commented on August 16, 2024 2

I agree with @naseemkullah , extraEnv is quite popular and understandable.

Adding deprecation notice with end of support date will be sufficient.

from helm-charts.

Jasstkn avatar Jasstkn commented on August 16, 2024 1

Hello @naseemkullah! Thanks for asking me, I really appreciate it.

Why we can't combine those approaches?
Let's say all of the env variables will be changed in env: {}, but extraEnvConfig: using toYaml.

If we combine two approaches it will not affect existed installations and upgrade from one version to another. Breaking changes could be really painful for someone.

from helm-charts.

cgroschupp avatar cgroschupp commented on August 16, 2024 1

Hi @Jasstkn, only Values.esIndexCleaner.env and .Values.schema.env are affected. And I think env and extraEnvConfig are very confusing

from helm-charts.

naseemkullah avatar naseemkullah commented on August 16, 2024 1

Yeah to today, on top of es-index-cleaner and schema-job other components using env: {} as it is today are the any storage related env var for all components (i.e. anything beginning with ES_ or CASSANDRA_) ... I'd like to avoid breaking that, but I'd also like avoid having two ways to use env: in the various components of the charts.

So while extraEnvConfig is verbose, the idea is right and extraEnv could be a good way to introduce the improved way to add env vars.

extraEnv has proven to be a widely used var name as per grepping for it in the stable repo: https://github.com/helm/charts/search?p=1&q=extraEnv

Also, extraEnv is actually accurate since we are adding env vars to some others that are added by other means (thats to say, env sounds like it is authorative whereas extraEnv sounds additive)

@cgroschupp @Jasstkn and everyone else WDYT?

from helm-charts.

naseemkullah avatar naseemkullah commented on August 16, 2024 1

Also, we could add alongside env: of the schema, es index cleaner and storage components extraEnv and add a notice in the notes that env: is deprecated in favor of extraEnv and in a few months, get rid of env:.

from helm-charts.

mehta-ankit avatar mehta-ankit commented on August 16, 2024 1

I guess i was late to the party 😄
#121 now. 👍

from helm-charts.

Jasstkn avatar Jasstkn commented on August 16, 2024

@cgroschupp if I understand correct, @naseemkullah wants to extend this change to all of the environment variables..

from helm-charts.

mehta-ankit avatar mehta-ankit commented on August 16, 2024

@naseemkullah
I feel having both env and extraEnv is confusing.

I have some questions ?

  1. READMe mentions <component>.env - Additional environment variables - {}.
    but i don't see that value (.Values.collector.env or .Values.query.env) being used for other components, like query or collector. Can we not pass in environment variables for those right now?

  2. If we use env: {} , How can we use valueForm approach to read from secrets or configMap objects in K8s ?? There are some examples where its helpful:

from helm-charts.

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.