-
Couldn't load subscription status.
- Fork 22
[EntitySource] Modify entity source interface #90
[EntitySource] Modify entity source interface #90
Conversation
The "Get" function of the entity source did not return an error and instead only a nil entity when its not found. This PR modifies the same, to make it return an error. Reason: The method could be implmented with a client that fetches bundle contents from the cluster. The error returned from the client needs to be propagated. Signed-off-by: Varsha Prasad Narsing <varshaprasad96@gmail.com>
|
Looks good to me, but I'll defer to @perdasilva to make sure we aren't missing some important context about this. |
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
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
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
|
(Something seems off with the merge requirement for someone from |
The "Get" function of the entity source did not return an error and instead only a nil entity when its not found. This PR modifies the same, to make it return an error.
Reason:
The method could be implmented with a client that fetches bundle contents from the cluster. The error returned from the client needs to be propagated. Even if its from an offline key-value store, it could be upto the library users to ignore the returned error.
More info: operator-framework/operator-controller#141 (comment)