From 59a6e658d8f63a385778c936da522c306ba3f64f Mon Sep 17 00:00:00 2001 From: liangwenguo Date: Thu, 26 Jul 2018 16:51:01 +0800 Subject: [PATCH] fix grammar error: the predicate verb should be the third person. --- cmd/kubeadm/app/cmd/cmd.go | 2 +- cmd/kubeadm/app/cmd/phases/controlplane.go | 2 +- cmd/kubeadm/app/cmd/phases/etcd.go | 2 +- cmd/kubeadm/app/cmd/phases/kubeconfig.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/kubeadm/app/cmd/cmd.go b/cmd/kubeadm/app/cmd/cmd.go index d968e53732c..0a4c61f4d8a 100644 --- a/cmd/kubeadm/app/cmd/cmd.go +++ b/cmd/kubeadm/app/cmd/cmd.go @@ -28,7 +28,7 @@ import ( // depends on the generated defaults. ) -// NewKubeadmCommand return cobra.Command to run kubeadm command +// NewKubeadmCommand returns cobra.Command to run kubeadm command func NewKubeadmCommand(in io.Reader, out, err io.Writer) *cobra.Command { cmds := &cobra.Command{ Use: "kubeadm", diff --git a/cmd/kubeadm/app/cmd/phases/controlplane.go b/cmd/kubeadm/app/cmd/phases/controlplane.go index a5f2363f98f..8a39c9298f9 100644 --- a/cmd/kubeadm/app/cmd/phases/controlplane.go +++ b/cmd/kubeadm/app/cmd/phases/controlplane.go @@ -63,7 +63,7 @@ var ( `+cmdutil.AlphaDisclaimer), kubeadmconstants.GetStaticPodFilepath(kubeadmconstants.KubeScheduler, kubeadmconstants.GetStaticPodDirectory())) ) -// NewCmdControlplane return main command for Controlplane phase +// NewCmdControlplane returns main command for Controlplane phase func NewCmdControlplane() *cobra.Command { cmd := &cobra.Command{ Use: "controlplane", diff --git a/cmd/kubeadm/app/cmd/phases/etcd.go b/cmd/kubeadm/app/cmd/phases/etcd.go index 02c2ef0fc64..d61e7f7bb70 100644 --- a/cmd/kubeadm/app/cmd/phases/etcd.go +++ b/cmd/kubeadm/app/cmd/phases/etcd.go @@ -45,7 +45,7 @@ var ( `) ) -// NewCmdEtcd return main command for Etcd phase +// NewCmdEtcd returns main command for Etcd phase func NewCmdEtcd() *cobra.Command { cmd := &cobra.Command{ Use: "etcd", diff --git a/cmd/kubeadm/app/cmd/phases/kubeconfig.go b/cmd/kubeadm/app/cmd/phases/kubeconfig.go index 351a1adcac6..d5311ac23bd 100644 --- a/cmd/kubeadm/app/cmd/phases/kubeconfig.go +++ b/cmd/kubeadm/app/cmd/phases/kubeconfig.go @@ -75,7 +75,7 @@ var ( `) ) -// NewCmdKubeConfig return main command for kubeconfig phase +// NewCmdKubeConfig returns main command for kubeconfig phase func NewCmdKubeConfig(out io.Writer) *cobra.Command { cmd := &cobra.Command{ Use: "kubeconfig",