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 name contains spaces #17

Closed
termit-uanic opened this issue Oct 5, 2021 · 2 comments
Closed

Chart name contains spaces #17

termit-uanic opened this issue Oct 5, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@termit-uanic
Copy link

If there are spaces in the title of the diagram, there will be an error

Chart.yaml

apiVersion: v2
name: Test Chart v2
description: A Helm chart for Kubernetes
❯ helm datree test ./ -- --values values.yaml --values values-test.yaml --set namespace=test
~/.local/share/helm/plugins/helm-datree/scripts/run.sh: line 34: $tempManifestPath: ambiguous redirect
Error: plugin "datree" exited with error

You should quote the variable $tempManifestPath

run.sh

helm template "${helm_options[@]}" "$helm_chart_location" > "$tempManifestPath"
$HELM_PLUGIN_DIR/bin/datree "${datree_options[@]}" "$tempManifestPath"
@termit-uanic termit-uanic added the bug Something isn't working label Oct 5, 2021
@termit-uanic
Copy link
Author

sorry
Hastened to send a bug

@romanlab
Copy link
Member

romanlab commented Oct 5, 2021

For future reference if anyone finds it - the reason this is not a bug is because the helm chart name is used as a DNS record and dns disallows spaces(and uppercase letters and underscores). From helm docs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants