Skip to content
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

Allow custom configuration variables for web and worker pods #136

Closed
egabancho opened this issue Dec 3, 2024 · 5 comments
Closed

Allow custom configuration variables for web and worker pods #136

egabancho opened this issue Dec 3, 2024 · 5 comments

Comments

@egabancho
Copy link
Member

It'll be interesting to allow to have different configurations depending on the kind of deployment.
I'm thinking, in particular, setting SENTRY_TRANSPORT = 'raven.transport.http.HTTPTransport' on the celery workers https://invenio-logging.readthedocs.io/en/latest/configuration.html.

I'm thinking something as simple as:

worker:
  extraEnvVars:
    - name: INVENIO_SENTRY_TRANSPORT
      value: 'raven.transport.http.HTTPTransport' 

And then render them as environmental variables directly on the container.

@lindhe
Copy link
Contributor

lindhe commented Dec 4, 2024

I think that would make a lot of sense. But I also think that the current structure of the values file is suboptimal in general. Maybe we could consider changing the structure while working with this change? It feels so arbitrary and organic to have some stuff inside of invenio.* and some stuff outside. As if web and worker weren't part of invenio. 😕

@egabancho
Copy link
Member Author

I totally agree. It is somewhat odd 😅
What do you have in mind?

@lindhe
Copy link
Contributor

lindhe commented Dec 5, 2024

Not much in mind, unfortunately. Hard to know where to start with this problem. There's plenty of components, so I guess having one field per component might make sense. But then there's some things that are shared between components, e.g., between web and worker. Maybe that should go inside of global?

Do you have any idea where to start? Probably best to do it piece by piece, rather than a big bang migration…

@egabancho
Copy link
Member Author

How does this relate to #117 and #118?

I like the idea of global, every other chart I've used seems to have it.

@lindhe
Copy link
Contributor

lindhe commented Dec 6, 2024

I think global was popularized by Bitnami, which is why many charts use it. It's a pretty good pattern in my opinion, even if I sometimes get confused about exactly what is considered "global" scope.

Probably has more to do with #118 than #117, but yeah it's a big overlap. And you are right to bring that up, we should probably keep the conversation in one of the other Issues instead.

egabancho added a commit to egabancho/helm-invenio that referenced this issue Dec 13, 2024
egabancho added a commit to egabancho/helm-invenio that referenced this issue Dec 13, 2024
egabancho added a commit to egabancho/helm-invenio that referenced this issue Dec 13, 2024
egabancho added a commit to egabancho/helm-invenio that referenced this issue Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants