Skip to content

Automated cherry pick of #1207: fix: rule difference for nested objects#1335

Open
kmala wants to merge 2 commits intokubernetes:release-1.29from
kmala:automated-cherry-pick-of-#1207-upstream-release-1.29
Open

Automated cherry pick of #1207: fix: rule difference for nested objects#1335
kmala wants to merge 2 commits intokubernetes:release-1.29from
kmala:automated-cherry-pick-of-#1207-upstream-release-1.29

Conversation

@kmala
Copy link
Member

@kmala kmala commented Feb 11, 2026

Cherry pick of #1207 on release-1.29.

#1207: fix: rule difference for nested objects

For details on the cherry pick process, see the cherry pick requests page.


The Difference method calculation are returning wrong values on service
update calculating the security group rules.

The core issue is caused by it is always comparing the pointer address,
not the values, always generating difference between lists.

Example:
given s1:{a1, a2} and s2:{a2,a3,a4}
s2.Difference(s1) was returning {a2, a3, a4}, instead {a3, a4}
@k8s-ci-robot k8s-ci-robot added needs-kind Indicates a PR lacks a `kind/foo` label and requires one. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Feb 11, 2026
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign nckturner for approval. For more information see the Code Review Process.

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

Details 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

@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Feb 11, 2026
@kmala
Copy link
Member Author

kmala commented Feb 11, 2026

/kind bug
/triage accepted

@k8s-ci-robot k8s-ci-robot added kind/bug Categorizes issue or PR as related to a bug. triage/accepted Indicates an issue or PR is ready to be actively worked on. and removed needs-kind Indicates a PR lacks a `kind/foo` label and requires one. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Feb 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/bug Categorizes issue or PR as related to a bug. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. triage/accepted Indicates an issue or PR is ready to be actively worked on.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants