Closed gulecroc closed 4 days ago
volumeMounts for configmaps are set to readonly. See https://github.com/docker-mailserver/docker-mailserver-helm/blob/master/charts/docker-mailserver/templates/deployment.yaml#L111. Are you asking for that to be configurable?
But secrets are not set to readonly, but seems they should be? Are you asking for that to be configurable too?
defaultMode - happy for PR on that one.
As for mounting multiple keys for a configmap as volumes - instead you would create multiple config maps since each config map is meant to contain a single file mounted to disk that is used to configure docker mailserver. Does that work?
As for mounting multiple keys for a configmap as volumes - instead you would create multiple config maps since each config map is meant to contain a single file mounted to disk that is used to configure docker mailserver. Does that work?
Yes it totally works if I create one ConfigMap/Secret per key. It's just that this is a "limit" from the current template implementation. But I'm OK if you don't want to change this.
For others subjects I will see next week.
I think the best way to add user flexibility for ConfigMap and Secret is to add extraVolumes
and extraVolumesMount
. So user can set any properties for volume or volumeMount.
I will propose a PR
Users can already add configMaps and secrets using the configMaps
and secrets
keys in the values.yaml file. So this seems duplicative to me?
Hi @cfis, users can add configMaps and secrets using the configMaps
and secrets
but with limitation :
extraVolumes
and extraVolumeMounts
), so users can add any volume configuration
Hi,
Currently
configMaps
andsecrets
format only support one key to be mount.I would like to mount multiple keys from the same ConfigMap or Secret.
Futhermore I could not set :
I'm able to create a PR but this will break the current format ?
Best regards, Guillaume