mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-07-17 20:00:07 +00:00
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:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user