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

Make it easier to understand when registry is misformatted. #374

Open
jayunit100 opened this issue Jun 27, 2023 · 0 comments
Open

Make it easier to understand when registry is misformatted. #374

jayunit100 opened this issue Jun 27, 2023 · 0 comments
Labels
kind/bug PR/issue related to a bug needs-triage

Comments

@jayunit100
Copy link

Bug description

If you do something minor like add qoutes to a registry on accident, you get a tricky to udnerstand error message:

[!] Unable to resolve the plugin discovery image: unable to fetch registry name from image "'projects.registry.vmware.com/tanzu_cli_stage/plugins/plugin-inventory:latest'": could not parse reference: 'projects.registry.vmware.com/tanzu_cli_stage/plugins/plugin-inventory:latest'
[!] unable to list groups from discovery 'disc_0': unable to fetch the inventory of discovery 'disc_0' for groups: plugins discovery image resolution failed. Please check that the repository image URL "'projects.registry.vmware.com/tanzu_cli_stage/plugins/plugin-inventory:latest'" is correct
[x] : unable to find plugin group vmware-tkg/tkg-ob-464796462228756226-g885cc5ad

Expected behavior

We should just bail out if the registry string is clearly invalid, b/c "parse reference" isnt clear that its a simple "registry has weird chars in it" related error.

Steps to reproduce the bug / Relevant debug output

Output of tanzu version

Environment where the bug was observed (cloud, OS, etc)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug PR/issue related to a bug needs-triage
Projects
None yet
Development

No branches or pull requests

1 participant