Skip to content

feat: watch for drift/diff reportings in the CRB watcher#1026

Merged
ryanzhang-oss merged 2 commits intoAzure:mainfrom
michaelawyu:feat/crb-watcher
Jan 30, 2025
Merged

feat: watch for drift/diff reportings in the CRB watcher#1026
ryanzhang-oss merged 2 commits intoAzure:mainfrom
michaelawyu:feat/crb-watcher

Conversation

@michaelawyu
Copy link
Contributor

Description of your changes

This PR enables the CRB watcher controller to detect drift/diff reporting changes.

I have:

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

How has this code been tested

  • Unit tests
  • Integration tests

Special notes for your reviewer

fakePlacementController.ResetQueue()
})

It("Should enqueue the clusterResourcePlacement name for reconciling, when there are no more drifted placements", func() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
It("Should enqueue the clusterResourcePlacement name for reconciling, when there are no more drifted placements", func() {
It("Should enqueue the clusterResourcePlacement name for reconciling, when there are no more diffed placements", func() {

fakePlacementController.ResetQueue()
})

It("Should not enqueue the clusterResourcePlacement name for reconciling, when there are only order changes in the drifted placement list", func() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
It("Should not enqueue the clusterResourcePlacement name for reconciling, when there are only order changes in the drifted placement list", func() {
It("Should not enqueue the clusterResourcePlacement name for reconciling, when there are only order changes in the diffed placement list", func() {

@ryanzhang-oss ryanzhang-oss merged commit bc5a844 into Azure:main Jan 30, 2025
12 checks passed
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