diff --git a/go.mod b/go.mod index 74eb4e9f..45423b68 100644 --- a/go.mod +++ b/go.mod @@ -25,7 +25,7 @@ require ( golang.org/x/time v0.9.0 google.golang.org/protobuf v1.36.5 gopkg.in/evanphx/json-patch.v4 v4.12.0 - k8s.io/api v0.0.0-20250606195803-f3c48f85ffba + k8s.io/api v0.0.0-20250610195658-be9d9f7dc6a8 k8s.io/apimachinery v0.0.0-20250606195423-d5745c2f38f8 k8s.io/klog/v2 v2.130.1 k8s.io/kube-openapi v0.0.0-20250318190949-c8a335a9a2ff diff --git a/go.sum b/go.sum index fcc813ff..7e66acf8 100644 --- a/go.sum +++ b/go.sum @@ -146,8 +146,8 @@ gopkg.in/inf.v0 v0.9.1/go.mod h1:cWUDdTG/fYaXco+Dcufb5Vnc6Gp2YChqWtbxRZE0mXw= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -k8s.io/api v0.0.0-20250606195803-f3c48f85ffba h1:n6AxsYKGIMMGjZh5rsHVbSwqzWmEwRF/PfgSOLKUivw= -k8s.io/api v0.0.0-20250606195803-f3c48f85ffba/go.mod h1:xYU4p3Ir8msMLqBi9mgeDAgHcf2fNo6NKYkkYFogdEI= +k8s.io/api v0.0.0-20250610195658-be9d9f7dc6a8 h1:FqgJO31JFCAbGW7/3ec2lOgfBIw1v0cndlJBrN58umk= +k8s.io/api v0.0.0-20250610195658-be9d9f7dc6a8/go.mod h1:xYU4p3Ir8msMLqBi9mgeDAgHcf2fNo6NKYkkYFogdEI= k8s.io/apimachinery v0.0.0-20250606195423-d5745c2f38f8 h1:A1dmKRZ8nLaHG91IF7/hYkS+gxL+nbK2IbE0bpr+vZM= k8s.io/apimachinery v0.0.0-20250606195423-d5745c2f38f8/go.mod h1:PGtm8W98oUVV5mUJGWUaZ+YbAQNG2JrGPKDZ+9v87rk= k8s.io/klog/v2 v2.130.1 h1:n9Xl7H1Xvksem4KFG4PYbdQCQxqc/tTUyrgXaOhHSzk= diff --git a/tools/cache/listwatch.go b/tools/cache/listwatch.go index 30d30e88..f5b04a19 100644 --- a/tools/cache/listwatch.go +++ b/tools/cache/listwatch.go @@ -154,6 +154,10 @@ type WatchFuncWithContext func(ctx context.Context, options metav1.ListOptions) // ListWithContextFunc and WatchFuncWithContext are preferred if // a context is available, otherwise ListFunc and WatchFunc. // +// Beware of the inconsistent naming of the two WithContext methods. +// This was unintentional, but fixing it now would force the ecosystem +// to go through a breaking Go API change and was deemed not worth it. +// // NewFilteredListWatchFromClient sets all of the functions to ensure that callers // which only know about ListFunc and WatchFunc continue to work. type ListWatch struct {