-
Notifications
You must be signed in to change notification settings - Fork 42
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
Depreciate ErrNoOperatorCondition #65
Depreciate ErrNoOperatorCondition #65
Conversation
Pull Request Test Coverage Report for Build 1008560611
💛 - Coveralls |
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
Problem: The ErrNoOperatorCondition does not surface any errors encountered when retrieving OperatorConditions from the cluster. It is not possible to know if there is an RBAC issue, if the resource does not exist, or some other error. Solution: Surface the error retrieving the OperatorCondition.
7b1b5dc
to
7c5f140
Compare
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: varshaprasad96 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Just a belated nit: Since we no longer return this error, I think we should do one more thing.
|
+1 |
@joelanford I created #66 to remove the ErrNoOperatorCondition. |
A 3rd option: wrap the underlying error in ErrNoOperatorCondition, which is my preference. |
@estroz what value did we get from the |
I don't know, I was assuming there was a particular reason it was added in the first place. If you don't think there is benefit, then I'm in favor of removing the error entirely. |
It seems like the intention was to signal |
Problem: The ErrNoOperatorCondition does not surface any errors
encountered when retrieving OperatorConditions from the cluster.
It is not possible to know if there is an RBAC issue, if the
resource does not exist, or some other error.
Solution: Surface the error retrieving the OperatorCondition