Skip to content

Conversation

@jwtty
Copy link
Collaborator

@jwtty jwtty commented Apr 22, 2025

Description of your changes

When CRP rollout strategy is changed from External to RollingUpdate, the rollout is not triggered. This PR fixes this issue.

Fixes #

I have:

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

How has this code been tested

Special notes for your reviewer

@jwtty jwtty force-pushed the rollout-type-fix branch 2 times, most recently from c0a4c10 to cf7a863 Compare April 22, 2025 22:58
@jwtty jwtty force-pushed the rollout-type-fix branch 2 times, most recently from 94d5ea5 to e6105fe Compare April 23, 2025 20:01
verifyBindingsNotRolledOutConsistently(bindings)

By("Updating CRP rollout strategy type to empty")
rolloutCRP.Spec.Strategy.Type = ""
Copy link
Contributor

Choose a reason for hiding this comment

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

is this allowed? Don't our webhook/API definition/CEL block this?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I tried in prod. This is allowed.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Default value is used if empty.

jwtty added 2 commits April 24, 2025 00:29
… to RollingUpdate

Signed-off-by: Wantong Jiang <wantjian@microsoft.com>
Signed-off-by: Wantong Jiang <wantjian@microsoft.com>
@jwtty jwtty force-pushed the rollout-type-fix branch from e6105fe to 10958ba Compare April 24, 2025 00:29
@ryanzhang-oss ryanzhang-oss merged commit 9c67ff9 into kubefleet-dev:main Apr 24, 2025
19 of 20 checks passed
@jwtty jwtty deleted the rollout-type-fix branch April 25, 2025 00:10
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.

3 participants