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 Charts: Prevent vendor panic by adding validation #718

Merged
merged 4 commits into from Jun 7, 2022

Conversation

julienduchesne
Copy link
Contributor

This one was pre-existing :)

Given this chartfile:

repositories:
- name: prefect
  url: https://prefecthq.github.io/server/
requires:
- chart: prefect
  version: '2022.04.14'
version: 1

We get a panic because the name cannot be split into its two parts

It's not possible to add this dependency using the add command but given that we want to also support manual edits to the yaml file, additional validation can be nice

Charts with a custom directory defined are getting pruned 🤦
This one was pre-existing :)

Given this chartfile:
```yaml
repositories:
- name: prefect
  url: https://prefecthq.github.io/server/
requires:
- chart: prefect
  version: '2022.04.14'
version: 1
```

We get a panic because the name cannot be split into its two parts

It's not possible to add this dependency using the `add` command but given that we want to also support manual edits to the yaml file, additional validation can be nice
@julienduchesne julienduchesne marked this pull request as ready for review June 3, 2022 18:19
@julienduchesne julienduchesne requested review from a team, sh0rez and Duologic June 3, 2022 18:19
Base automatically changed from julienduchesne/helm-fix-prune to main June 7, 2022 16:38
@julienduchesne julienduchesne merged commit 7ed9709 into main Jun 7, 2022
@julienduchesne julienduchesne deleted the julienduchesne/helm-fix-panic branch June 7, 2022 16:42
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.

None yet

2 participants