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

Chart fails when nexus.extraLabels is used #103

Open
hWorblehat opened this issue Aug 25, 2021 · 0 comments
Open

Chart fails when nexus.extraLabels is used #103

hWorblehat opened this issue Aug 25, 2021 · 0 comments

Comments

@hWorblehat
Copy link

Adding a nexus.extraLabels mapping causes templating to fail with the following message:

Error: YAML parse error on nexus-repository-manager/templates/deployment.yaml: error converting YAML to JSON: yaml: line 11: mapping values are not allowed in this context

Looking at the output with --debug, it appears the the first entry in the extraLabels map is indented too far, and this is causing the problem.

The template files seem to use the syntax:

  {{- if .Values.nexus.extraLabels }}
    {{- with .Values.nexus.extraLabels }}
      {{ toYaml . | indent 4 }}
    {{- end }}
  {{- end }}

I believe switching from indent to nindent should fix the issue.

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

Successfully merging a pull request may close this issue.

1 participant