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
Honor the configured refresh interval for FromConfigMap polling #4973
KubernetesFromConfigMapProcessor schedules updates at kubernetes.manifests.refreshInterval (default five seconds), but the default PollingConfigMapGetter caches successful reads for five minutes. Most refresh executions only copy the old cached value, contrary to the refresh contract documented by @FromConfigMap.
Use the default polling getter with a short configured refresh interval, read a ConfigMap, change it on the server, and wait several refresh intervals. The injected map still contains the original data until the getter's five-minute cache expires.
Impact
Configuration updates can remain invisible for nearly five minutes despite a much shorter configured refresh interval. Suggested priority: medium.
Requested fix and acceptance criteria
Ensure the default polling path observes server changes at the configured refresh cadence instead of being overridden by a fixed five-minute cache.
Add a regression test exercising the real polling getter against a mock API server rather than only testing with a custom in-memory getter.
Keep tests bounded and avoid multi-minute sleeps.
Preserve public APIs and document any necessary behavior clarification.
A separate issue addresses cross-client isolation of the polling caches. Keep this patch focused on cadence and compatible with instance-scoped caches.
Agent instructions
Implement the fix, run relevant regression tests, and open a pull request referencing and closing this issue. Follow the repository's PR template and contribution conventions. Other agents may change nearby Spring code; keep unrelated fixes out of this PR.
Activity