Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Helm chart installation failing due to duplicate key in template file #1045

Open
BrentGruber opened this issue Nov 30, 2023 · 0 comments
Open

Comments

@BrentGruber
Copy link

In the helm chart template elasticsearch-manage-job.yaml, there is a duplicate "name" key under metadata which is leading to this error while I am trying to install via Kustomize with helmChartInflationGenerator

error: map[string]interface {}(nil): yaml: unmarshal errors: 
  line 6: mapping key "name" already defined at line 5

Duplicate key can be found here:

https://github.com/mistio/mist-ce/blob/master/chart/mist/templates/elasticsearch-manage-job.yaml#L4

apiVersion: batch/v1
kind: Job
metadata:
  name: elasticsearch-manage
  name: {{ include "chart.fullname" . }}-elasticsearch-manage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant