Coder Social home page Coder Social logo

Allow overrides for dovecot about helm-charts HOT 8 CLOSED

mailu avatar mailu commented on May 5, 2024
Allow overrides for dovecot

from helm-charts.

Comments (8)

tgruenert avatar tgruenert commented on May 5, 2024 3

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.

fw8 avatar fw8 commented on May 5, 2024 1

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.

unixfox avatar unixfox commented on May 5, 2024

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.

micw avatar micw commented on May 5, 2024

@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 avatar unixfox commented on May 5, 2024

@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.

omitrowski avatar omitrowski commented on May 5, 2024

I guess this would be related: #61. I guess our approach would satisfie this request too.

from helm-charts.

micw avatar micw commented on May 5, 2024

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.

micw avatar micw commented on May 5, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.