Problem
MetricCache in FlinkK8sWatchController has no expiration or size bound. When a job stops without explicit cache invalidation, metrics can remain stale indefinitely.
Proposed solution
Add Caffeine expireAfterWrite and maximumSize, consistent with other K8s watcher caches.
Problem
MetricCacheinFlinkK8sWatchControllerhas no expiration or size bound. When a job stops without explicit cache invalidation, metrics can remain stale indefinitely.Proposed solution
Add Caffeine
expireAfterWriteandmaximumSize, consistent with other K8s watcher caches.