-
Notifications
You must be signed in to change notification settings - Fork 910
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
fix!: make .spec.selector
immutable
#4084
Conversation
Signed-off-by: Zach Aller <zachaller@users.noreply.github.com>
Signed-off-by: Zach Aller <zachaller@users.noreply.github.com>
Published E2E Test Results 4 files 4 suites 3h 8m 46s ⏱️ For more details on these failures, see this check. Results for commit 639a6fc. ♻️ This comment has been updated with latest results. |
Published Unit Test Results2 291 tests 2 291 ✅ 2m 59s ⏱️ Results for commit 639a6fc. ♻️ This comment has been updated with latest results. |
Signed-off-by: Zach Aller <zachaller@users.noreply.github.com>
|
.spec.selector
immutable
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.
LGTM
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.
LGTM. The PR could be titled fix!: <desc>
to clearly identify a breaking change. https://www.conventionalcommits.org/en/v1.0.0/
.spec.selector
immutable.spec.selector
immutable
* fix: make selector immutable Signed-off-by: Zach Aller <zachaller@users.noreply.github.com> * fix: make selector immutable Signed-off-by: Zach Aller <zachaller@users.noreply.github.com> * fix: make selector optional for workloadRef Signed-off-by: Zach Aller <zachaller@users.noreply.github.com> --------- Signed-off-by: Zach Aller <zachaller@users.noreply.github.com>
BREAKING CHANGE
We are changing the behavior of Rollouts
.spec.selector
to be immutable. This change matches the behavior of the Deployment kind which is a goal of the Rollouts kind to stay as close as possible to the Deployment resource. This change fixes issues and confusion when we abandon ReplicaSets if the selector is change. Going forward in order to change the selector you would have to delete the Rollout.Upstream Reference: kubernetes/kubernetes#50808
fixes: #1761, #2105, #4070