Skip to content

Conversation

@metacosm
Copy link
Collaborator

@metacosm metacosm commented Dec 2, 2025

Signed-off-by: Chris Laprun claprun@redhat.com

Signed-off-by: Chris Laprun <claprun@redhat.com>
@metacosm metacosm self-assigned this Dec 2, 2025
@metacosm metacosm requested review from csviri and xstefank December 2, 2025 13:05
}

@SuppressWarnings("unchecked")
public <R> R getOrComputeDesiredStateFor(
Copy link
Collaborator

Choose a reason for hiding this comment

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

IMO this should be addded under defaultManagedDependentResourceContext , logically relates to that.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is used for non-managed dependent resources as well: it's used everywhere desired is used and this isn't part of the public API anyway. It's only public because it's used in different packages but otherwise it would have been a package-only method.

@csviri
Copy link
Collaborator

csviri commented Dec 2, 2025

Not sure if the test coverage is good enough this way, but let it be up to you to judge.

Signed-off-by: Chris Laprun <metacosm@gmail.com>
@metacosm
Copy link
Collaborator Author

metacosm commented Dec 2, 2025

Hmm, looks like the expectation tests are flaky…

@metacosm metacosm merged commit 0d7f026 into next Dec 3, 2025
36 of 44 checks passed
@metacosm metacosm deleted the cache-desired-in-context branch December 3, 2025 08:47
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.

4 participants