Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

[LOGTASH] error mount extra volume #1182

Closed
nvthuong1996 opened this issue May 11, 2021 · 4 comments
Closed

[LOGTASH] error mount extra volume #1182

nvthuong1996 opened this issue May 11, 2021 · 4 comments
Labels
logstash question Further information is requested triage/stale

Comments

@nvthuong1996
Copy link

Chart version: 7.12.1

Error

Error: template: elk/charts/logstash/templates/statefulset.yaml:139:14: executing "elk/charts/logstash/templates/statefulset.yaml" at <.Values.extraVolumes>: wrong type for value; expected string; got []interface {} Use --debug flag to render out invalid YAML

Value:

  extraVolumeMounts:
  - name: email-error-template
    mountPath: /tmp/template
  
  extraVolumes:
  - name: email-error-template
    configMap:
      name: email-error-template
@ebuildy
Copy link
Contributor

ebuildy commented May 25, 2021

logstash chart requires a string, not an array. Whereas other chart such as apm-server requires an array ....

So the correct syntax for logstash is:

 extraVolumeMounts: |+
    - name: email-error-template
      mountPath: /tmp/template
  
  extraVolumes: |+
    - name: email-error-template
      configMap:
        name: email-error-template

I think this sould be rewritten to handle extraVolumeMounts / extraVolumes as array (like apm-server chart).

@jmlrt jmlrt added logstash question Further information is requested labels Jul 6, 2021
@pradeepnnv
Copy link

pradeepnnv commented Jul 12, 2021

Thanks @ebuildy .
Need a similar fix for extraInitContainers as well.

@botelastic
Copy link

botelastic bot commented Oct 10, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@botelastic
Copy link

botelastic bot commented Nov 9, 2021

This issue has been automatically closed because it has not had recent activity since being marked as stale.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
logstash question Further information is requested triage/stale
Projects
None yet
Development

No branches or pull requests

4 participants