-
Notifications
You must be signed in to change notification settings - Fork 335
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
feature(kuma-cp): allow custom files in chart cm #3671
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3671 +/- ##
=======================================
Coverage 50.90% 50.90%
=======================================
Files 927 927
Lines 56508 56508
=======================================
+ Hits 28766 28767 +1
+ Misses 25453 25452 -1
Partials 2289 2289
Continue to review full report at Codecov.
|
Would it be preferable to add the possibility to mount extra volumes to the cp rather than inlining a bunch of files in the configMap? Something akin to this that would work for secrets and configMap? |
Thanks for your feedback @lahabana. I don't have a strong view. It would be more flexible to do what you suggest so that you can mount config to any path, rather than just files under /etc/kuma.io/kuma-control-plane. Either approach would address our current need. Do you have a preference? |
Possibly the latest change is not quite what you had in mind @lahabana, but is maybe somewhere in between the two approaches. How does that seem to you? |
@wjrbetts it's getting close I believe. However, what's the point of having the configMap inline in your |
Are you suggesting creating extra config maps outside of helm and just referencing them in the chart @lahabana? It seems potentially convenient to me not to have to create/destroy extra config maps separately from the rest of the resources in the chart. Very happy to change that though. Do you have a concern about having it inline? |
@wjrbetts how about making both work if values is not set don't create the configMap and only mount it? Btw the tests are failing because you haven't updated the golden files see: |
Sounds good to me, I'll give that a try. Ah ok, thanks for the pointer |
The initial motivation for this is to allow the appropriate CA file for the Postgres instance to be specified when running kuma-cp in universal mode and then configured with KUMA_STORE_POSTGRES_TLS_CA_PATH Signed-off-by: Will Betts <will.betts@equalexperts.com>
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 thanks for the contribution!
The initial motivation for this is to allow the appropriate
CA file for the Postgres instance to be specified when
running kuma-cp in universal mode and then configured with
KUMA_STORE_POSTGRES_TLS_CA_PATH
Signed-off-by: Will Betts will.betts@equalexperts.com