<#7272 [V2] App use Informer cache to watch> Pull ...
# flyte-github
a
#7272 [V2] App use Informer cache to watch Pull request opened by machichima Tracking issue Closes #7251 Why are the changes needed? Use informer cache rather than directly call
k8sClient.Watch
to reduce the loading for k8s API server, and do not need to maintain resource version manually What changes were proposed in this pull request? • Add informer cache. Informer cache will add element to queue when the objects are added/updated. • Build the subscribe pattern, when get a watch update, notify the subscribers that watch the specific app • Create
KService
under fixed "flyte" namespace How was this patch tested? • Update unit tests • Try to serve an app with
flyte serve examples/apps/basic_app.py app_env
and ensure it works correctly Labels • changed: For changes in existing functionality. This is important to improve the readability of release notes. Setup process Screenshots Check all the applicable boxes • I updated the documentation accordingly. • All new and existing tests passed. • All commits are signed-off. Related PRs Docs link flyteorg/flyte