wildfly / wildfly-charts

Helm Charts for WildFly
https://docs.wildfly.org/wildfly-charts/
Apache License 2.0
3 stars 14 forks source link

Configured volumes are not properly mounted #63

Closed jmesnil closed 2 years ago

jmesnil commented 2 years ago

Describe the bug A clear and concise description of what the bug is.

It should be possible to mount a volume by configuring the deploy.volumes and deploy.volumeMounts fields. However, the deploy.volumes is not put in the proper place in the Deployment template and is effectively ignored.

To Reproduce Steps to reproduce the behavior:

  1. Create a secret

kubectl create secret generic my-secret --from-literal=foo=bar

  1. Install the helm release with the configuration values:
deploy:
  volumeMounts:
    - name: my-secret
      mountPath: “/etc/config/my-secret”
      readOnly: true
  volumes:
    - name: my-secret
      secret:
        secretName: my-secret

Expected behavior

The secret should be mounted in /etc/config/my-secret and the command cat /etc/config/my-secret/foo should display bar

Instead, the /etc/config/my-secret directory does not exist.

jmesnil commented 2 years ago

This is not a bug in the helm chart.

It turns out the issue was in the quote used to mount the secret: “/etc/config/my-secret” does not work while "/etc/config/my-secret" (or simply /etc/config/my-secret) does work