-
Notifications
You must be signed in to change notification settings - Fork 345
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
Sonobuoy existing preflight check #345
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm!
return errors.Wrap(err, "error checking for Sonobuoy pod") | ||
// No error: pod exists | ||
case err == nil: | ||
return errors.New("sonobuoy run already exists in this namespace") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probably out of scope for this, but what do you think about giving the user some action on a failed preflight? for instance in this case, either delete the pod or run it in a different namespace
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I thought about that. It doesn't feel right to put that sort of thing inside of a error message, though. Maybe at some point we could make an ErrorWithSolution() type that had both an Error()
and a Solution()
method on it, then the CLI could check for the latter?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah!
Signed-off-by: liz <[email protected]>
8f79e5d
to
aa73717
Compare
Signed-off-by: liz <[email protected]> Signed-off-by: Jesse Hamilton [email protected]
Signed-off-by: liz <[email protected]> Signed-off-by: Jesse Hamilton [email protected] Signed-off-by: Jesse Hamilton [email protected]
Signed-off-by: liz <[email protected]>
Checks to see if a Sonobuoy pod exists in this namespace already.
Signed-off-by: liz [email protected]