Skip to content

disable terminatingReplicas reconciliation in ReplicationController #131822

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

Conversation

atiratree
Copy link
Member

@atiratree atiratree commented May 16, 2025

What type of PR is this?

/kind bug

What this PR does / why we need it:

disable terminatingReplicas reconciliation in ReplicationController

Which issue(s) this PR fixes:

Fixes #131821

Special notes for your reviewer:

Does this PR introduce a user-facing change?

fix ReplicationController reconciliation when the DeploymentReplicaSetTerminatingReplicas feature gate is enabled

Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:


@k8s-ci-robot k8s-ci-robot added kind/bug Categorizes issue or PR as related to a bug. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. do-not-merge/needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. needs-priority Indicates a PR lacks a `priority/foo` label and requires one. sig/apps Categorizes an issue or PR as relevant to SIG Apps. and removed do-not-merge/needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. labels May 16, 2025
@github-project-automation github-project-automation bot moved this to Needs Triage in SIG Apps May 16, 2025
@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. and removed do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. labels May 16, 2025
@atiratree
Copy link
Member Author

/priority important-soon
/triage accepted

@k8s-ci-robot k8s-ci-robot added priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. triage/accepted Indicates an issue or PR is ready to be actively worked on. and removed needs-priority Indicates a PR lacks a `priority/foo` label and requires one. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels May 16, 2025
@atiratree
Copy link
Member Author

/assign @liggitt

@atiratree atiratree force-pushed the replicationcontroller-terminating-replicas branch from 5d35202 to c9a4782 Compare May 16, 2025 18:52
@@ -319,6 +319,8 @@ func TestReplicationControllerConversion(t *testing.T) {
t.Errorf("can't convert RC to RS: %v", err)
continue
}
// fill in new fields that should not exist in a ReplicationController, but do exist in a ReplicaSet
apiObjectFuzzer.FillNoCustom(&rs.Status.TerminatingReplicas)
Copy link
Member

Choose a reason for hiding this comment

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

I'm not sure what this is demonstrating or catching ... the issue wasn't in conversion, it was in controller logic

Copy link
Member Author

Choose a reason for hiding this comment

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

I was trying to improve the fuzzing that you have mentioned in #128546 (comment) and this was the only improvement that I could think of.

Ok, never mind, I have removed this commit.

@atiratree atiratree force-pushed the replicationcontroller-terminating-replicas branch from c9a4782 to b7d16fe Compare May 30, 2025 19:08
@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 30, 2025
@atiratree
Copy link
Member Author

flake
/test pull-kubernetes-e2e-kind-ipv6

@liggitt
Copy link
Member

liggitt commented Jun 10, 2025

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jun 10, 2025
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: faf37cb98edc335354d560ad5654e815986fc6cf

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: atiratree, liggitt

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@liggitt liggitt added this to the v1.34 milestone Jun 10, 2025
@k8s-ci-robot k8s-ci-robot merged commit 089849a into kubernetes:master Jun 10, 2025
14 checks passed
@github-project-automation github-project-automation bot moved this from Needs Triage to Done in SIG Apps Jun 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/bug Categorizes issue or PR as related to a bug. lgtm "Looks good to me", indicates that a PR is ready to be merged. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. release-note Denotes a PR that will be considered when it comes time to generate release notes. sig/apps Categorizes an issue or PR as relevant to SIG Apps. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. triage/accepted Indicates an issue or PR is ready to be actively worked on.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

ReplicationController cannot fully reconcile with DeploymentReplicaSetTerminatingReplicas FG enabled
4 participants