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 endless recursion when a workload uses the same name as its owner. #3615

Merged
merged 1 commit into from
Jun 10, 2024

Conversation

thallgren
Copy link
Member

The workload cache was keyed by name and namespace, but not by kind, so a workload named the same as its owner workload would be found using the same key. This led to the workload finding itself when looking up its owner, which in turn resulted in an endless recursion when searching for the topmost owner.

The workload cache was keyed by name and namespace, but not by kind, so
a workload named the same as its owner workload would be found using the
same key. This led to the workload finding itself when looking up its
owner, which in turn resulted in an endless recursion when searching for
the topmost owner.

Signed-off-by: Thomas Hallgren <[email protected]>
@thallgren thallgren added the ok to test Applied by maintainers when a PR is ready to have tests run on it label Jun 10, 2024
@github-actions github-actions bot removed the ok to test Applied by maintainers when a PR is ready to have tests run on it label Jun 10, 2024
@thallgren thallgren merged commit f4f2d39 into thallgren/v2.18.6 Jun 10, 2024
14 checks passed
@thallgren thallgren deleted the thallgren/workload-owner-recursion branch June 10, 2024 20:46
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.

1 participant