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

Fix check for if a bundle was provided #1706

Merged
merged 1 commit into from
Aug 10, 2021

Conversation

carolynvs
Copy link
Member

What does this change

Install requires a bundle definition from either --reference, --file,
--cnab-file or from the bundle in the current directory. The other
commands can either use those or use the installation name to look up
the bundle definition.

I found a way to get install to execute without specifying a bundle
definition and it blew up later in code that execpted that this had
already been validated. The command was

porter install --creds aks

I didn't specify a --reference or anything and wasn't in a bundle
directory.

Hopefully this plugs the gaps in wher we check for this condition.

What issue does it fix

NA

Notes for the reviewer

I will merge this into v1 after it's merged into main.

Checklist

  • Unit Tests
  • Documentation
  • Schema (porter.yaml)

Install requires a bundle definition from either --reference, --file,
--cnab-file or from the bundle in the current directory. The other
commands can either use those or use the installation name to look up
the bundle definition.

I found a way to get install to execute without specifying a bundle
definition and it blew up later in code that execpted that this had
already been validated. The command was

porter install --creds aks

I didn't specify a --reference or anything and wasn't in a bundle
directory.

Hopefully this plugs the gaps in wher we check for this condition.

Signed-off-by: Carolyn Van Slyck <[email protected]>
@carolynvs carolynvs marked this pull request as ready for review August 10, 2021 20:36
@carolynvs carolynvs merged commit 3e9cd2c into getporter:main Aug 10, 2021
@carolynvs carolynvs deleted the fix-bundle-check branch August 10, 2021 22:49
@carolynvs carolynvs mentioned this pull request Aug 11, 2021
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.

2 participants