mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-09 03:57:41 +00:00
Del capatical local packagename for kSelector
This commit is contained in:
parent
b8aabbbf4f
commit
bea0fc7cb6
@ -39,7 +39,7 @@ import (
|
|||||||
kclient "k8s.io/kubernetes/pkg/client/unversioned"
|
kclient "k8s.io/kubernetes/pkg/client/unversioned"
|
||||||
kclientcmd "k8s.io/kubernetes/pkg/client/unversioned/clientcmd"
|
kclientcmd "k8s.io/kubernetes/pkg/client/unversioned/clientcmd"
|
||||||
kframework "k8s.io/kubernetes/pkg/controller/framework"
|
kframework "k8s.io/kubernetes/pkg/controller/framework"
|
||||||
kSelector "k8s.io/kubernetes/pkg/fields"
|
kselector "k8s.io/kubernetes/pkg/fields"
|
||||||
etcdstorage "k8s.io/kubernetes/pkg/storage/etcd"
|
etcdstorage "k8s.io/kubernetes/pkg/storage/etcd"
|
||||||
"k8s.io/kubernetes/pkg/util"
|
"k8s.io/kubernetes/pkg/util"
|
||||||
"k8s.io/kubernetes/pkg/util/wait"
|
"k8s.io/kubernetes/pkg/util/wait"
|
||||||
@ -379,17 +379,17 @@ func buildDNSNameString(labels ...string) string {
|
|||||||
|
|
||||||
// Returns a cache.ListWatch that gets all changes to services.
|
// Returns a cache.ListWatch that gets all changes to services.
|
||||||
func createServiceLW(kubeClient *kclient.Client) *kcache.ListWatch {
|
func createServiceLW(kubeClient *kclient.Client) *kcache.ListWatch {
|
||||||
return kcache.NewListWatchFromClient(kubeClient, "services", kapi.NamespaceAll, kSelector.Everything())
|
return kcache.NewListWatchFromClient(kubeClient, "services", kapi.NamespaceAll, kselector.Everything())
|
||||||
}
|
}
|
||||||
|
|
||||||
// Returns a cache.ListWatch that gets all changes to endpoints.
|
// Returns a cache.ListWatch that gets all changes to endpoints.
|
||||||
func createEndpointsLW(kubeClient *kclient.Client) *kcache.ListWatch {
|
func createEndpointsLW(kubeClient *kclient.Client) *kcache.ListWatch {
|
||||||
return kcache.NewListWatchFromClient(kubeClient, "endpoints", kapi.NamespaceAll, kSelector.Everything())
|
return kcache.NewListWatchFromClient(kubeClient, "endpoints", kapi.NamespaceAll, kselector.Everything())
|
||||||
}
|
}
|
||||||
|
|
||||||
// Returns a cache.ListWatch that gets all changes to pods.
|
// Returns a cache.ListWatch that gets all changes to pods.
|
||||||
func createEndpointsPodLW(kubeClient *kclient.Client) *kcache.ListWatch {
|
func createEndpointsPodLW(kubeClient *kclient.Client) *kcache.ListWatch {
|
||||||
return kcache.NewListWatchFromClient(kubeClient, "pods", kapi.NamespaceAll, kSelector.Everything())
|
return kcache.NewListWatchFromClient(kubeClient, "pods", kapi.NamespaceAll, kselector.Everything())
|
||||||
}
|
}
|
||||||
|
|
||||||
func (ks *kube2sky) newService(obj interface{}) {
|
func (ks *kube2sky) newService(obj interface{}) {
|
||||||
|
Loading…
Reference in New Issue
Block a user