Skip to content
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: add handleUpdate func for the CRP controller to support v1 API #373

Merged
merged 9 commits into from
Jun 7, 2023

Conversation

zhiying-lin
Copy link
Contributor

Description of your changes

Create handleUpdate func for v1 CRP in order to not break the existing e2e tests.

The current handleUpdate func only creates the clusterPolicySnapshot if needed.

I have:

  • Run make reviewable to ensure this PR is ready for review.

How has this code been tested

Add Unit tests

Special notes for your reviewer

Will add other functionality, eg, create the clusterResourceSnapshot in the coming PR.

@zhiying-lin
Copy link
Contributor Author

Added a new error type, ErrUnexpectedBehavior

The controller will return nil when the error type is ErrUnexpectedBehavior.
We'll setup alert based on either metrics or logs for this kind of error.

@ryanzhang-oss ryanzhang-oss merged commit 3103570 into Azure:main Jun 7, 2023
@zhiying-lin zhiying-lin deleted the crp branch June 8, 2023 02:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants