-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
fix(appset): informer is not a kubernetes informer (#18905) #19618
Conversation
Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
❌ Preview Environment deleted from BunnyshellAvailable commands (reply to this comment):
|
❌ Preview Environment deleted from BunnyshellAvailable commands (reply to this comment):
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #19618 +/- ##
==========================================
+ Coverage 55.85% 55.90% +0.04%
==========================================
Files 316 316
Lines 43790 43776 -14
==========================================
+ Hits 24459 24473 +14
+ Misses 16779 16756 -23
+ Partials 2552 2547 -5 ☔ View full report in Codecov by Sentry. |
@alexmt does this seem reasonable, or should we dig further to find out how to write back to the informer? |
I've wasted a few hours and also could not find a way to access the underlying informer. PR makes sense to get rid of error message. |
Access the Informer Store with this One Easy Trick Kubernetes Maintainers Don't Want You to Know! |
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.
The change LGTM!!
/cherry-pick release-2.12 |
…rgoproj#19618) Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
updateCache
was introduced in #15514 to avoid a bug where the appset controller would delete an app'sstatus
field.The PR had to changes: 1) use
patch
instead ofupdate
and 2) write updates back to the informer to avoid stale data.I think the first change is probably enough to fix the bug.
With the latest controller runtime code, I'm not seeing a way to access the underlying data store to do write-backs. But maybe at this point it's not necessary anyway.
Fixes #18905