Advice user on non-existing profile instead of crash#4896
Advice user on non-existing profile instead of crash#4896medyagh merged 1 commit intokubernetes:masterfrom
Conversation
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: RA489 The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/assign @RA489 |
| Issues: []int{4599}, | ||
| }, | ||
| "PROFILE_NOT_FOUND": { | ||
| Regexp: re(`Could not find the minikube profile`), |
There was a problem hiding this comment.
the regex should be, "Machine does not exist for api.Exists(lis)"
| Advice: "Please make sure the service you are looking for is deployed or is in the correct namespace.", | ||
| Issues: []int{4599}, | ||
| }, | ||
| "PROFILE_NOT_FOUND": { |
There was a problem hiding this comment.
this should be "MACHINE_NOT_FOUND"
bc86b59 to
ff81ad7
Compare
|
@medyagh Thanks for your reviews! I have updated the PR as per your suggestions. |
| Issues: []int{4599}, | ||
| }, | ||
| "MACHINE_NOT_FOUND": { | ||
| Regexp: re(`Machine does not exist for api.Exists(lis)`), |
There was a problem hiding this comment.
the (lis) is extra ( that was my example profile)
it should be "Machine does not exist for api.Exists"
I recommend attaching the output of the console to try, I recmmend
deleting your minikube then
then try ./out/minikube ssh -p p1 -- ls -lah
then paste the output in the PR review so we know it worked :)
|
@medyagh attaching the output of the console ``` 💣 Error getting host: Machine does not exist for api.Exists(p1) 😿 Sorry that minikube crashed. If this was unexpected, we would love to hear from you: |
|
I don't think this is taking the optimal approach: the error is still opaque. Rather than advice, I would prefer that ssh to exit with a very clear message, such as:
I took a poke around, and think this could be solved by updating ssh.go to use Alternatively, I saw that |
|
@RA489 Thank you for this contribution ! this will make user experience better |
When minikube profile is delete and try to do minkube ssh , it crashes with error
fixes #4889