Comments (8)
i would like to suggest a structure at values.yaml for this
# overrides define file content at ./overrides directory
# for each supported component here an set of files and there content can be defined
overrides:
rspamd:
actions.conf: |
# reject = 8; # Reject when reaching this score
# add_header = 6; # Add header when reaching this score
# greylist = 4; # Apply greylisting when reaching this score (will emit `soft reject action`)
#unknown_weight = 1.0; # Enable if need to set score for all symbols implicitly
# Each new symbol is added multiplied by gf^N, where N is the number of spammy symbols
#grow_factor = 1.1;
# Set rewrite subject to this value (%s is replaced by the original subject)
#subject = "***SPAM*** %s"
# .include(try=true; priority=1; duplicate=merge) "$LOCAL_CONFDIR/local.d/actions.conf"
# .include(try=true; priority=10) "$LOCAL_CONFDIR/override.d/actions.conf"
whiteliste.conf: |
whitelist_from {
type = "from";
filter = "email:domain";
prefilter = "true";
map = "/${LOCAL_CONFDIR}/override.d/whitelist_from.map";
# action = "accept";
score = -15;
symbol = "WHITELIST_FROM_DOMAINS";
}
so for every component supporting (rspamd, nginx, ...) overrides i would like to define a configmap and mount the files shown in example inside the directory /overrides/{component}/
would this cover your needs?
from helm-charts.
i would like to suggest a structure at values.yaml for this
# overrides define file content at ./overrides directory # for each supported component here an set of files and there content can be defined overrides: rspamd: actions.conf: | # reject = 8; # Reject when reaching this score ...
so for every component supporting (rspamd, nginx, ...) overrides i would like to define a configmap and mount the files shown in example inside the directory /overrides/{component}/
would this cover your needs?
Nice idea!
But I would prefer to add the overrides to the existent entries of each component... like so:
postfix:
overrides:
postfix.cf: |
# overrides for postfix
dovecot:
overrides:
dovecot.conf: |
# overrides for dovecot
...
What do you think about that?
So far I've done it for postfix and it is working. I can extend the other components in the same way (if they support the "override" mechanism) and make a PR.
from helm-charts.
Helm allows to pass a whole file using --set-file
(see this comment for an example: helm/helm#3276 (comment)). Then like @tgruenert said, you "just" need to mount the configmap of the file on the appropriate deployment.
I think it's more appropriate than including the override files into the values.yml which could become a mess if one has a lot of files.
from helm-charts.
@unixfox: as far as I can see it should be possible to set these variables from a file too (e.g. help --set-file overrides=myoverrides.yaml) - right?
from helm-charts.
@unixfox: as far as I can see it should be possible to set these variables from a file too (e.g. help --set-file overrides=myoverrides.yaml) - right?
Probably but I can't confirm on that because there could be some transformation needed from YAML to actual helm YAML.
Anyway it's better to test with an example helm chart in order to be sure that it really works.
from helm-charts.
I guess this would be related: #61. I guess our approach would satisfie this request too.
from helm-charts.
I agree that having overrides in components makes more sense.
@zurajm the PR is mixed up with the previous one, we need to get this sorted. Otherwise it looks good. Best way to fix this is to create a new branch from origin/master and cherry-pick your own changes into it.
from helm-charts.
Sorry for that long delay. #75 is finally merged. PRs that adds overrides to other service in the same way are welcome.
from helm-charts.
Related Issues (20)
- [BUG] Postfix liveness probe is not sufficient to detect faulty pods HOT 7
- Postfix stopped working HOT 5
- Re-add containerSecurityContext HOT 1
- [BUG] Credentials are being asked when upgrading van 1.2.0 to 1.4.0 HOT 1
- [BUG] Postfix forward to Dovecot HOT 5
- Avoid hard coding "svc" in FQDNs HOT 2
- [BUG] HOT 3
- Admin hangs at migration after upgrade from 2.0.28 to 2.0.29 HOT 13
- [BUG] Authentication credentials invalid HOT 10
- mailu 2.0.30 admin container not starting - mail redirected to legacy setup and seemingly missing due to misconfiguration HOT 14
- Freshclam on K8S HOT 6
- relay abuse through SRS HOT 6
- [BUG] Admin service crashes when creating a new user HOT 2
- [BUG] Changes to immutable labels prevent migrations to newer chart versions HOT 5
- [BUG] Default configuration disables outbound TLS of Postfix HOT 3
- fix(admin): relation "domain" does not exist for postgres HOT 1
- treafik support HOT 2
- [BUG] rspamd: DNS reply returned 'no error' for dwl.dnswl.org while 'no records with this name' was expected when querying for 'LkJBkdnhL-tpa.dwl.dnswl.org' (likely DNS spoofing or BL internal issues) HOT 3
- feat: providing existing certificate for `imaps`, `pop3s`, `smtps`(465), and `starttls`(587), etc HOT 4
- No rate limit internal email? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from helm-charts.