-
Notifications
You must be signed in to change notification settings - Fork 26
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
feat: drift detection and takeover implementation (1/ contd) #1010
base: main
Are you sure you want to change the base?
Conversation
wrappedErr := fmt.Errorf("unexpected apply strategy %s is found", applyStrategy.Type) | ||
_ = controller.NewUnexpectedBehaviorError(wrappedErr) | ||
return nil, wrappedErr |
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.
I wonder why don't we return the unexpectedError here but return APIServer errors in other places?
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.
is that UnExpected erorr are "unExpected" so we don't want to record?
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.
Hi Ryan! It's still logged; the thing about this one is that the returned error will be formatted into a condition message which the user would be able to see, and the unexpected behavior cannot be handled by the controller
part might read a bit weird; do we still want to expose them?
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.
I will make the changes if that is OK with you.
Description of your changes
This PR addresses the leftover comments on #985.
I have:
make reviewable
to ensure this PR is ready for review.How has this code been tested
Special notes for your reviewer
N/A