Merge remote-tracking branch 'origin/master' into release-1.12

Kubernetes-commit: ed4a3fb9ed935a67ad62ffefb101b976b58013f9
This commit is contained in:
Kubernetes Publisher
2018-08-28 20:46:13 +08:00
43 changed files with 8906 additions and 1258 deletions
-8
View File
@@ -18,7 +18,6 @@ package cache
import (
"context"
"time"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/fields"
@@ -91,13 +90,6 @@ func NewFilteredListWatchFromClient(c Getter, resource string, namespace string,
return &ListWatch{ListFunc: listFunc, WatchFunc: watchFunc}
}
func timeoutFromListOptions(options metav1.ListOptions) time.Duration {
if options.TimeoutSeconds != nil {
return time.Duration(*options.TimeoutSeconds) * time.Second
}
return 0
}
// List a set of apiserver resources
func (lw *ListWatch) List(options metav1.ListOptions) (runtime.Object, error) {
if !lw.DisableChunking {