Skip to content

Commit

Permalink
Merge pull request kubernetes#17891 from zhengguoyong/consistent_kube…
Browse files Browse the repository at this point in the history
…let_package

Auto commit by PR queue bot
  • Loading branch information
k8s-merge-robot committed Dec 1, 2015
2 parents 77e9066 + bff8334 commit 643cb7a
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions cmd/genkubedocs/gen_kube_docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
apiservapp "k8s.io/kubernetes/cmd/kube-apiserver/app"
cmapp "k8s.io/kubernetes/cmd/kube-controller-manager/app"
proxyapp "k8s.io/kubernetes/cmd/kube-proxy/app"
klapp "k8s.io/kubernetes/cmd/kubelet/app"
kubeletapp "k8s.io/kubernetes/cmd/kubelet/app"
schapp "k8s.io/kubernetes/plugin/cmd/kube-scheduler/app"
)

Expand Down Expand Up @@ -66,7 +66,7 @@ func main() {
cobra.GenMarkdownTree(scheduler, outDir)
case "kubelet":
// generate docs for kubelet
kubelet := klapp.NewKubeletCommand()
kubelet := kubeletapp.NewKubeletCommand()
cobra.GenMarkdownTree(kubelet, outDir)
default:
fmt.Fprintf(os.Stderr, "Module %s is not supported", module)
Expand Down
4 changes: 2 additions & 2 deletions cmd/hyperkube/kubelet.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ limitations under the License.
package main

import (
kubelet "k8s.io/kubernetes/cmd/kubelet/app"
kubeletapp "k8s.io/kubernetes/cmd/kubelet/app"
)

// NewKubelet creates a new hyperkube Server object that includes the
// description and flags.
func NewKubelet() *Server {
s := kubelet.NewKubeletServer()
s := kubeletapp.NewKubeletServer()
hks := Server{
SimpleUsage: "kubelet",
Long: `The kubelet binary is responsible for maintaining a set of containers on a
Expand Down
4 changes: 2 additions & 2 deletions cmd/kubelet/kubelet.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
"os"
"runtime"

"k8s.io/kubernetes/cmd/kubelet/app"
kubeletapp "k8s.io/kubernetes/cmd/kubelet/app"
"k8s.io/kubernetes/pkg/util"
"k8s.io/kubernetes/pkg/version/verflag"

Expand All @@ -34,7 +34,7 @@ import (

func main() {
runtime.GOMAXPROCS(runtime.NumCPU())
s := app.NewKubeletServer()
s := kubeletapp.NewKubeletServer()
s.AddFlags(pflag.CommandLine)

util.InitFlags()
Expand Down
10 changes: 5 additions & 5 deletions contrib/mesos/pkg/executor/service/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
log "github.com/golang/glog"
bindings "github.com/mesos/mesos-go/executor"
"github.com/spf13/pflag"
"k8s.io/kubernetes/cmd/kubelet/app"
kubeletapp "k8s.io/kubernetes/cmd/kubelet/app"
"k8s.io/kubernetes/contrib/mesos/pkg/executor"
"k8s.io/kubernetes/contrib/mesos/pkg/executor/config"
"k8s.io/kubernetes/contrib/mesos/pkg/hyperkube"
Expand All @@ -43,7 +43,7 @@ import (
)

type KubeletExecutorServer struct {
*app.KubeletServer
*kubeletapp.KubeletServer
SuicideTimeout time.Duration
LaunchGracePeriod time.Duration

Expand All @@ -53,7 +53,7 @@ type KubeletExecutorServer struct {

func NewKubeletExecutorServer() *KubeletExecutorServer {
k := &KubeletExecutorServer{
KubeletServer: app.NewKubeletServer(),
KubeletServer: kubeletapp.NewKubeletServer(),
SuicideTimeout: config.DefaultSuicideTimeout,
LaunchGracePeriod: config.DefaultLaunchGracePeriod,
}
Expand Down Expand Up @@ -151,8 +151,8 @@ func (s *KubeletExecutorServer) runKubelet(
if err == nil {
// apply Messo specific settings
executorDone := make(chan struct{})
kcfg.Builder = func(kc *app.KubeletConfig) (app.KubeletBootstrap, *kconfig.PodConfig, error) {
k, pc, err := app.CreateAndInitKubelet(kc)
kcfg.Builder = func(kc *kubeletapp.KubeletConfig) (kubeletapp.KubeletBootstrap, *kconfig.PodConfig, error) {
k, pc, err := kubeletapp.CreateAndInitKubelet(kc)
if err != nil {
return k, pc, err
}
Expand Down
4 changes: 2 additions & 2 deletions contrib/mesos/pkg/node/statusupdater.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"time"

log "github.com/golang/glog"
kubelet "k8s.io/kubernetes/cmd/kubelet/app"
kubeletapp "k8s.io/kubernetes/cmd/kubelet/app"
"k8s.io/kubernetes/contrib/mesos/pkg/runtime"
"k8s.io/kubernetes/pkg/api"
"k8s.io/kubernetes/pkg/api/errors"
Expand All @@ -46,7 +46,7 @@ type StatusUpdater struct {
}

func NewStatusUpdater(client *client.Client, relistPeriod time.Duration, nowFunc func() time.Time) *StatusUpdater {
kubecfg := kubelet.NewKubeletServer() // only create to get the config, this is without side-effects
kubecfg := kubeletapp.NewKubeletServer() // only create to get the config, this is without side-effects
return &StatusUpdater{
client: client,
relistPeriod: relistPeriod,
Expand Down
4 changes: 2 additions & 2 deletions contrib/mesos/pkg/node/statusupdater_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (

"github.com/stretchr/testify/assert"
"k8s.io/kubernetes/cmd/kube-controller-manager/app"
kubelet "k8s.io/kubernetes/cmd/kubelet/app"
kubeletapp "k8s.io/kubernetes/cmd/kubelet/app"
"k8s.io/kubernetes/pkg/api"
"k8s.io/kubernetes/pkg/api/unversioned"
)
Expand All @@ -47,7 +47,7 @@ func Test_nodeWithUpdatedStatus(t *testing.T) {
}

cm := app.NewCMServer()
kubecfg := kubelet.NewKubeletServer()
kubecfg := kubeletapp.NewKubeletServer()
assert.True(t, kubecfg.NodeStatusUpdateFrequency*3 < cm.NodeMonitorGracePeriod) // sanity check for defaults

n := testNode(0, api.ConditionTrue, "KubeletReady")
Expand Down

0 comments on commit 643cb7a

Please sign in to comment.