Merge pull request #135006 from p0lyn0mial/upstream-watchlist-unsupported-wl-kubelet-fake-pod-lw

kubelet/config/apiserver_test: expose IsWatchListSemanticsUnSupported on fakePodLW
This commit is contained in:
Kubernetes Prow Robot
2025-10-31 08:32:15 -07:00
committed by GitHub

View File

@@ -41,6 +41,15 @@ func (lw fakePodLW) Watch(options metav1.ListOptions) (watch.Interface, error) {
return lw.watchResp, nil
}
// IsWatchListSemanticsSupported informs the reflector that this client
// doesn't support WatchList semantics.
//
// This is a synthetic method whose sole purpose is to satisfy the optional
// interface check performed by the reflector.
// Returning true signals that WatchList can NOT be used.
// No additional logic is implemented here.
func (lw fakePodLW) IsWatchListSemanticsUnSupported() bool { return true }
var _ cache.ListerWatcher = fakePodLW{}
func TestNewSourceApiserver_UpdatesAndMultiplePods(t *testing.T) {