-
Notifications
You must be signed in to change notification settings - Fork 33
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
feat: add support for extraEnvFrom #85
feat: add support for extraEnvFrom #85
Conversation
Signed-off-by: Ludovic Ortega <[email protected]>
Signed-off-by: Ludovic Ortega <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this contribution! This is definitively a gap we need to fill. I have proposed an alternative approach in the comment below, I'm curious about your opinion 🙂
Signed-off-by: Ludovic Ortega <[email protected]>
Signed-off-by: Ludovic Ortega <[email protected]>
Signed-off-by: Ludovic Ortega <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Huge thanks for persevering on this PR! I think we are almost there and it will be a great addition.
@@ -50,7 +50,7 @@ spec: | |||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" | |||
imagePullPolicy: {{ .Values.image.pullPolicy }} | |||
env: | |||
{{- include "quickwit.environment" . | nindent 12 }} | |||
{{- include "quickwit.metastore.environment" . | nindent 12 }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding this. Even though the description in #81 only mentions the searcher/indexer, I think the janitor and control plane should also get the metastore configuration.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, I will update this :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
quickwit.environment
is now unused with this change do you want to keep it separated for a future feature in an other PR ? Or i merge metastore definition in environment ?
Co-authored-by: Remi Dettai <[email protected]>
Co-authored-by: Remi Dettai <[email protected]>
Co-authored-by: Remi Dettai <[email protected]>
Co-authored-by: Remi Dettai <[email protected]>
Co-authored-by: Remi Dettai <[email protected]>
Co-authored-by: Remi Dettai <[email protected]>
Co-authored-by: Remi Dettai <[email protected]>
Sorry I didn't have the time to test this PR yet, I'll do it early next week. Looking good overall! |
I'm probably doing something wrong, but I can't get this PR to work. My
This works correctly to set for example the
However, following snippet is then included in the
Which of course fails as this is not valid config for Quickwit. We should remove that key from the |
There are some AWS env vars we could also set with the Quickwit environment
But there's also non-s3 variables like In the
But if the user doesn't add |
Signed-off-by: Ludovic Ortega <[email protected]>
Hello, This PR is in working progress (haven't tested since my first commit as I'm waiting feedback for full implementation and test, don't consider it as stable). I've fixed the case you mentioned thanks for your feedback :). Regards, |
I think it should be handled in another PR since this PR is solely focused on supporting extraEnvFrom to facilite review and merge. |
I don't expect anything stable, don't worry. I just wanted to help to see if it works as expected. Your fix seems to do the trick without having to make other changes, great! |
One other thing I noticed is that a (empty) secret is created, despite the conditional on top of the |
Signed-off-by: Ludovic Ortega <[email protected]>
Thanks, it should be fixed also |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks @tcassaert, your tests are most appreciated.
I didn't notice that the config.storage
section was copied into the config map. This is actually very bad because:
- it means that currently secrets are leaked to the config map
- it makes our current approach with
xxx_secret_key_ref
quite confusing.
I need a bit more time to figure out the best way to do this, as I'm starting to fear that a breaking change will be required.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM (I'll perform some test on kind tomorrow and publish the result here)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! I think we need an entry in the readme like this one to help users adjust to the breaking change and we are good to go!
Co-authored-by: Remi Dettai <[email protected]>
Could you do it? I haven't played much with Quickwit yet as I was waiting for this PR to be merged. Therefore, I don't have much knowledge or history about it (and the Helm chart). You should have the right to edit my PR or provide suggested changes. |
…ngly Signed-off-by: Idriss Neumann <[email protected]>
@M0NsTeRRR I opened a PR to be merged inside your branch if you want: https://github.com/M0NsTeRRR/quickwit-charts/pull/1 The |
Thanks you :) |
|
Co-authored-by: Remi Dettai <[email protected]>
@M0NsTeRRR I think this change #85 (comment) didn´t get in 😄 |
Oh yes, I used github web commit and it only added a few lines |
question: is it possible to use |
Using
render
The configmap is mounted to :
|
Here is an implementation for #48
without any breaking changes.You can now pass two additional extra environment variables to define secrets. This implementation allows the user to pass the Postgres secret only to the required container if needed.