-
Notifications
You must be signed in to change notification settings - Fork 60
Fix improper controller-runtime cache configuration #640
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 improper controller-runtime cache configuration #640
Conversation
My understanding is that Kubernetes does not support |
@varshaprasad96 -- this misconfiguration is the root cause of the problem with AppWrappers containing Services we were describing to you a couple weeks back. At the time, we thought it was an issue in the AppWrapper operator when the AppWrapper contained multiple resources, but that turned out to be incorrect. The problem was the filtering of the controller-runtime cache by the codeflare operator which led the AppWrapper controller to get back a |
When AppWrappers are enabled, it is not correct to configure the controller-runtime cache with a filter that only allows services, secrets, etc with the RayCluster label to be cached. This breaks any AppWrapper that contains one of these resource kinds.
63277e6
to
a2ae4a6
Compare
rebased to pick up codeflare common fixes in #641 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be helpful to add tests to ensure controller behaves as expected with this cache configuration. Can do it later in follow up.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: varshaprasad96 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 |
💯 -- one possibility would be to try to run the existing appwrapper controller end-to-end test suite. I can take a look at that if the idea seems reasonable. |
9c96f44
into
project-codeflare:main
When AppWrappers are enabled, it is not correct to configure the controller-runtime cache with a filter that only allows services, secrets, etc with the RayCluster label to be cached. This breaks any AppWrapper that contains one of these resource kinds.