Consul-helm: When using 'extraVolumes' to mount secrets, Consul errors on start with 'data_dir is empty'

Created on 8 Oct 2018  路  1Comment  路  Source: hashicorp/consul-helm

When using the extraVolumes configuration option in the values.yaml, the Helm chart fails to start Consul correctly with the error data_dir is empty.

All secrets exist and when tested by telling the chart by setting them to load: false Consul starts correctly.

Upon further investigation the issue appears to be a missing \ in the loop that adds the extra config directories for the statefulset and the daemonset:

https://github.com/hashicorp/consul-helm/blob/master/templates/server-statefulset.yaml#L91
https://github.com/hashicorp/consul-helm/blob/master/templates/client-daemonset.yaml#L77

I would submit a Pull Request but the company I work for currently doesn't have a policy in place for contributing to open source software.

bug

Most helpful comment

Good catch! The fix is now merged, so it will be available in the next release.

>All comments

Good catch! The fix is now merged, so it will be available in the next release.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

HofmannZ picture HofmannZ  路  3Comments

sergeyshaykhullin picture sergeyshaykhullin  路  4Comments

viswanath7 picture viswanath7  路  5Comments

karras picture karras  路  6Comments

berkaybayraktar picture berkaybayraktar  路  6Comments