Skip to content

fix: add CEL to block user from changing External rollout strategy type to others#383

Merged
britaniar merged 4 commits intokubefleet-dev:mainfrom
britaniar:strategyPlacementCRDChange
Dec 24, 2025
Merged

fix: add CEL to block user from changing External rollout strategy type to others#383
britaniar merged 4 commits intokubefleet-dev:mainfrom
britaniar:strategyPlacementCRDChange

Conversation

@britaniar
Copy link
Member

@britaniar britaniar commented Dec 17, 2025

Description of your changes

I have:

  • Made placement CRD changes to block changing from external to other types of strategys..

  • Add API validation test

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

How has this code been tested

  • API Validation Integration test

Special notes for your reviewer

This is related to resource snapshot changes where an external strategy type CRP will not create a resourceSnapshot. The update run controller makes the snapshot vs the placement controller. Otherwise, race conditions could occur when the user updates the spec and two controllers handle the resourceSnapshots concurrently.

@britaniar britaniar changed the title fix: make rollout strategy immutable fix: make rollout strategy type immutable Dec 17, 2025
@britaniar britaniar changed the title fix: make rollout strategy type immutable fix: add CEL to block user from changing External rollout strategy type to others Dec 18, 2025
Signed-off-by: Britania Rodriguez Reyes <britaniar@microsoft.com>
@britaniar britaniar force-pushed the strategyPlacementCRDChange branch from 1d7476c to f06f3ef Compare December 18, 2025 18:49
Signed-off-by: Britania Rodriguez Reyes <britaniar@microsoft.com>
@codecov
Copy link

codecov bot commented Dec 18, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Signed-off-by: Britania Rodriguez Reyes <britaniar@microsoft.com>
@britaniar britaniar marked this pull request as ready for review December 18, 2025 23:03
Signed-off-by: Britania Rodriguez Reyes <britaniar@microsoft.com>
@britaniar britaniar merged commit 30462ce into kubefleet-dev:main Dec 24, 2025
23 of 27 checks passed
@britaniar britaniar deleted the strategyPlacementCRDChange branch December 24, 2025 11:17
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