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