mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-29 13:24:42 +00:00
kube-proxy should not depend on kubectl
This commit is contained in:
parent
f86ec3f764
commit
6ad56325ca
@ -64,7 +64,6 @@ go_library(
|
|||||||
"//pkg/apis/core:go_default_library",
|
"//pkg/apis/core:go_default_library",
|
||||||
"//pkg/client/clientset_generated/internalclientset:go_default_library",
|
"//pkg/client/clientset_generated/internalclientset:go_default_library",
|
||||||
"//pkg/client/informers/informers_generated/internalversion:go_default_library",
|
"//pkg/client/informers/informers_generated/internalversion:go_default_library",
|
||||||
"//pkg/kubectl/cmd/util:go_default_library",
|
|
||||||
"//pkg/kubelet/qos:go_default_library",
|
"//pkg/kubelet/qos:go_default_library",
|
||||||
"//pkg/master/ports:go_default_library",
|
"//pkg/master/ports:go_default_library",
|
||||||
"//pkg/proxy:go_default_library",
|
"//pkg/proxy:go_default_library",
|
||||||
|
@ -51,7 +51,6 @@ import (
|
|||||||
api "k8s.io/kubernetes/pkg/apis/core"
|
api "k8s.io/kubernetes/pkg/apis/core"
|
||||||
clientset "k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset"
|
clientset "k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset"
|
||||||
informers "k8s.io/kubernetes/pkg/client/informers/informers_generated/internalversion"
|
informers "k8s.io/kubernetes/pkg/client/informers/informers_generated/internalversion"
|
||||||
cmdutil "k8s.io/kubernetes/pkg/kubectl/cmd/util"
|
|
||||||
"k8s.io/kubernetes/pkg/kubelet/qos"
|
"k8s.io/kubernetes/pkg/kubelet/qos"
|
||||||
"k8s.io/kubernetes/pkg/master/ports"
|
"k8s.io/kubernetes/pkg/master/ports"
|
||||||
"k8s.io/kubernetes/pkg/proxy"
|
"k8s.io/kubernetes/pkg/proxy"
|
||||||
@ -353,9 +352,13 @@ with the apiserver API to configure the proxy.`,
|
|||||||
glog.Fatalf("failed OS init: %v", err)
|
glog.Fatalf("failed OS init: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
cmdutil.CheckErr(opts.Complete())
|
if err := opts.Complete(); err != nil {
|
||||||
cmdutil.CheckErr(opts.Validate(args))
|
glog.Fatalf("failed complete: %v", err)
|
||||||
cmdutil.CheckErr(opts.Run())
|
}
|
||||||
|
if err := opts.Validate(args); err != nil {
|
||||||
|
glog.Fatalf("failed validate: %v", err)
|
||||||
|
}
|
||||||
|
glog.Fatal(opts.Run())
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user