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

fix!: make .spec.selector immutable #4084

Merged
merged 3 commits into from
Jan 30, 2025

Conversation

zachaller
Copy link
Collaborator

@zachaller zachaller commented Jan 28, 2025

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

Signed-off-by: Zach Aller <zachaller@users.noreply.github.com>
Signed-off-by: Zach Aller <zachaller@users.noreply.github.com>
Copy link
Contributor

github-actions bot commented Jan 28, 2025

Published E2E Test Results

  4 files    4 suites   3h 8m 46s ⏱️
113 tests 104 ✅  7 💤 2 ❌
454 runs  424 ✅ 28 💤 2 ❌

For more details on these failures, see this check.

Results for commit 639a6fc.

♻️ This comment has been updated with latest results.

Copy link
Contributor

github-actions bot commented Jan 28, 2025

Published Unit Test Results

2 291 tests   2 291 ✅  2m 59s ⏱️
  128 suites      0 💤
    1 files        0 ❌

Results for commit 639a6fc.

♻️ This comment has been updated with latest results.

Signed-off-by: Zach Aller <zachaller@users.noreply.github.com>
@zachaller zachaller marked this pull request as ready for review January 28, 2025 18:09
@zachaller zachaller added this to the v1.9 milestone Jan 28, 2025
@zachaller zachaller changed the title fix: make selector immutable fix: make spec.selector immutable Jan 28, 2025
@zachaller zachaller changed the title fix: make spec.selector immutable fix: make .spec.selector immutable Jan 28, 2025
@zachaller zachaller changed the title fix: make .spec.selector immutable fix: make .spec.selector immutable Jan 28, 2025
Copy link
Contributor

@leoluz leoluz left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@agaudreault agaudreault left a 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/

@zachaller zachaller changed the title fix: make .spec.selector immutable fix!: make .spec.selector immutable Jan 30, 2025
@zachaller zachaller merged commit 4f5d93b into argoproj:master Jan 30, 2025
34 checks passed
meeech pushed a commit to CircleCI-Public/argo-rollouts that referenced this pull request Feb 10, 2025
* 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>
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.

historic ReplicaSet is not deleted
3 participants