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

Charts: Tighten validations #713

Merged
merged 1 commit into from
Jun 2, 2022

Conversation

julienduchesne
Copy link
Member

Closes #691 which is mostly a failure of error messages imo

Instead of getting a no such file, the error is now:

$ tk tool charts add https://helm.releases.hashicorp.com/vault@0.19.0
Adding 1 Charts ...
 Skipping https://helm.releases.hashicorp.com/vault@0.19.0: not of form 'repo/chart@version(:path)' where repo contains no special characters.
Error: 1 Chart(s) were skipped. Please check above logs for details

Also, adding an invalid repo now prints out a relevant error message instead of failing in helm commands

$ tk tool charts add-repo https://helm.releases.hashicorp.com  https://helm.releases.hashicorp.com
 Skipping https://helm.releases.hashicorp.com: invalid name. cannot contain any special characters.
Error: 1 Repo(s) were skipped. Please check above logs for details

Closes #691 which is mostly a failure of error messages imo

Instead of getting a `no such file`, the error is now: ```
$ tk tool charts add https://helm.releases.hashicorp.com/vault@0.19.0
Adding 1 Charts ...
 Skipping https://helm.releases.hashicorp.com/vault@0.19.0: not of form 'repo/chart@version(:path)' where repo contains no special characters.
Error: 1 Chart(s) were skipped. Please check above logs for details
```

Also, adding an invalid repo now prints out a relevant error message instead of failing in helm commands
```
$ tk tool charts add-repo https://helm.releases.hashicorp.com  https://helm.releases.hashicorp.com
 Skipping https://helm.releases.hashicorp.com: invalid name. cannot contain any special characters.
Error: 1 Repo(s) were skipped. Please check above logs for details
```
@julienduchesne julienduchesne requested review from Duologic, sh0rez and a team June 2, 2022 13:47
@julienduchesne julienduchesne marked this pull request as ready for review June 2, 2022 13:47
@julienduchesne julienduchesne merged commit fb2c3c4 into main Jun 2, 2022
@julienduchesne julienduchesne deleted the julienduchesne/tighten-validations-charts branch June 2, 2022 14:28
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 this pull request may close these issues.

tk tool charts add fails with urls
2 participants