opdev / opcap

Apache License 2.0
3 stars 15 forks source link

The list command should not assume cluster connectivity #308

Closed acmenezes closed 2 years ago

acmenezes commented 2 years ago

list packages needs cluster connectivity but list bundles doesn't since it will follow it's own way cloning the certified repo. So cluster connectivity shouldn't be assumed at the list level but at the inner level where packages actually are.

My proposal is to instantiate and test clients where they will actually be used. So PreRunE or some other function would go well in list_packages.go instead of list creating client and scheme and passing them to the command.