You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Avoid calls to Control Plane when the secondary resource is in cache #21109
I had worked through this a little more broadly with 39dda13 but was getting ahead of myself since it was built on top of changes from #20933 which haven't been included yet.
The only real problems to usage of the cache are making decisions like the one in #20906 to delete the stateful set - if the statefulset is coming from the cache we'll want to do one final fetch before making the decision to delete the old one, or change the logic to be reactive to a 422 error. Otherwise until the cache is updated, which in some corner cases may take a while, we'll keep re-deleting the statefulset if we're still getting other events.
Activity
shawkins commentedon Jun 20, 2023
I had worked through this a little more broadly with 39dda13 but was getting ahead of myself since it was built on top of changes from #20933 which haven't been included yet.
The only real problems to usage of the cache are making decisions like the one in #20906 to delete the stateful set - if the statefulset is coming from the cache we'll want to do one final fetch before making the decision to delete the old one, or change the logic to be reactive to a 422 error. Otherwise until the cache is updated, which in some corner cases may take a while, we'll keep re-deleting the statefulset if we're still getting other events.
Avoid calls to Control Plane when the secondary resource is in cache