Refactor PodsServer to use PodManager as source of truth

- Fixed version in kube_features.go after rebase (1.35->1.36)
- Removed internal pod cache in PodsServer to reduce memory footprint and avoid duplication.
- Injected pod.Manager into PodsServer to serve as the single source of truth for pod data.
- Refactored WatchPods to broadcast UIDs and fetch fresh pod data from podManager, ensuring consistency.
- Updated convertWatchEventType to safely handle unknown event types.
- Refactored unit tests to use MockManager and added a test case for static pods.
- Updated e2e suite with static pod test
This commit is contained in:
Brian Sonnenberg
2025-12-16 20:29:55 +00:00
parent 044f65ca5c
commit fd330c303d
5 changed files with 208 additions and 89 deletions

View File

@@ -1734,7 +1734,7 @@ var defaultVersionedKubernetesFeatureGates = map[featuregate.Feature]featuregate
},
PodsAPI: {
{Version: version.MustParse("1.35"), Default: false, PreRelease: featuregate.Alpha},
{Version: version.MustParse("1.36"), Default: false, PreRelease: featuregate.Alpha},
},
PortForwardWebsockets: {