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

Improve error message when porter is used with an unsupported registry #822

Closed
carolynvs opened this issue Dec 4, 2019 · 2 comments
Closed
Labels
user experience 🌈💖 Make it easier for everyone to use Porter

Comments

@carolynvs
Copy link
Member

carolynvs commented Dec 4, 2019

Since we are going to have registries in play that don't fully support the OCI registry spec for a while, let's have Porter gracefully degrade the publish command when it detects that it's working with one instead of hard erroring out.

When it attempts to publish the bundle to the registry, and porter detects that the error was caused by a non-OCI compliant registry (as opposed to say an authentication error), Porter should print a message linking to our docs on how to work with non-OCI compliant registries and then return with a 0 exit code. Essentially, only push the images and not the bundle.

@carolynvs carolynvs changed the title Gracefully downgrade publish for non-oci registries Gracefully degrade publish for non-oci registries Dec 4, 2019
@carolynvs carolynvs added the user experience 🌈💖 Make it easier for everyone to use Porter label Dec 4, 2019
@squillace
Copy link

Or have no pushing be the default, with a config that says, push invocation but not bundle? But, yes yes yes.... :-)

@carolynvs carolynvs changed the title Gracefully degrade publish for non-oci registries Improve error message when porter is used with an unsupported registry Mar 11, 2022
@carolynvs
Copy link
Member Author

Closing since a bunch of registries have proper OCI support now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
user experience 🌈💖 Make it easier for everyone to use Porter
Projects
None yet
Development

No branches or pull requests

2 participants