Mailu / helm-charts

Development repo for helm charts
126 stars 130 forks source link

Add possibility to set securityContext option in Dovecot container #240

Closed ffdfgdfg closed 11 months ago

ffdfgdfg commented 1 year ago

Describe the bug https://github.com/Mailu/Mailu/issues/1714

I add the SYS_CHROOT in dovecot deployment, web mail works normal. Hope add this option to charts!

Environment

Additional context Add any other context about the problem here.

zozo6015 commented 11 months ago

I am facing this issue. Could you please elaborate the code exactly where I need to add this to the dovecot deployment? I have tried to add it but does not seam to have any kind of effect. That is why I am thinking that I am not doing something right.

ffdfgdfg commented 11 months ago

I think this PR solves, https://github.com/Mailu/helm-charts/pull/263 You can just add in helm chart like

dovecot:
  affinity: {}
  compression: ""
  compressionLevel: 6
  containerSecurityContext:
    capabilities:
      add:
        - "SYS_CHROOT"
    enabled: true
    runAsUser: 0
zozo6015 commented 11 months ago

I can confirm it's working. Thank you