Skip to content
This repository has been archived by the owner on Nov 15, 2022. It is now read-only.

Error message regarding missing oc command is misleading #614

Open
tariq-islam opened this issue Mar 13, 2018 · 0 comments
Open

Error message regarding missing oc command is misleading #614

tariq-islam opened this issue Mar 13, 2018 · 0 comments

Comments

@tariq-islam
Copy link

When attempting to run kedge apply without kubectl in PATH, it would appear that kedge "falls back" to looking for the oc (OpenShift) client. Instead of providing a useful error message such as "kubectl was not found, please install kubectl and add it to your path", the user is told simply that the oc command couldn't be found, as though that's a kedge dependency.

This, in my opinion, is poor error handling and it's done so using a non-standard fall-back. The appropriate message should instruct the user to resolve the missing kubectl dependency and nothing more. Introducing a dependency on oc, and the subsequent message around oc missing, leads the user to believe that oc is fundamentally required for kedge to work.

'oc' should never have been introduced as the fallback, and should be taken out.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant