Remove an unused function in the kubelet code.

pull/6/head
Robert Bailey 2015-04-16 15:38:12 -07:00
parent 1d9203d98f
commit 8aff238c5f
1 changed files with 0 additions and 14 deletions

View File

@ -317,20 +317,6 @@ func (s *KubeletServer) Run(_ []string) error {
}
func (s *KubeletServer) setupRunOnce() {
if s.RunOnce {
// Don't use apiserver source, on the presumption that this flag is used
// for bootstrapping some system pods.
if len(s.APIServerList) > 0 {
glog.Fatalf("invalid option: --runonce and --api_servers are mutually exclusive")
}
if s.EnableServer {
glog.Infof("--runonce is set, disabling server")
s.EnableServer = false
}
}
}
// TODO: replace this with clientcmd
func (s *KubeletServer) createAPIServerClient() (*client.Client, error) {
authInfo, err := clientauth.LoadFromFile(s.AuthPath)