-
Notifications
You must be signed in to change notification settings - Fork 445
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
improve support for persistent configurations #1915
Conversation
@mmetc: There are no 'kind' label on this PR. You need a 'kind' label to generate the release automatically.
DetailsI am a bot created to help the crowdsecurity developers manage community feedback and contributions. You can check out my manifest file to understand my behavior and what I can do. If you want to use this for your project, you can check out the BirthdayResearch/oss-governance-bot repository. |
09cf9c5
to
8813e9d
Compare
/kind fix |
c07e60c
to
7e5da3f
Compare
Codecov Report
@@ Coverage Diff @@
## master #1915 +/- ##
==========================================
+ Coverage 53.59% 53.79% +0.20%
==========================================
Files 147 151 +4
Lines 19862 20243 +381
==========================================
+ Hits 10645 10890 +245
- Misses 8082 8178 +96
- Partials 1135 1175 +40
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
@LaurenceJJones thanks for testing but it's not finished, I'm missing a few things :) |
…CS_PORT if empty. Prefer defaults in config file rather than envvars, to support persistent configurations
3b0a2b3
to
8670878
Compare
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 tested via the set of user scenarios that were presented over the last couples of days.
I need to fix an issue with k8s and I'll merge to master. Monday we should release 1.4.4rc1 |
Does this do anything to fix crowdsecurity/helm-charts#67? |
set all defaults in config.yaml and leave environment variables empty. This way when they are set we know that we must override the values in config.yaml. ignore tainted objects when calling install/upgrade/remove use_wal is false by default
Yes and no. The container should not crash, but your multi-node setup still sees a single agent, although it's mostly an aesthetic issue, all agents work correctly. |
Some people like to configure completely from environment variables, others prefer persistent configuration in bind mount or persistent volumes. Since we have data as well in etc (the hub) and don't support all the possible options in envvars, persistent configurations are sometimes necessary.