From c8aa25e472ae5bc2b26c748a605ca53292c4510e Mon Sep 17 00:00:00 2001 From: chymy Date: Tue, 21 Jun 2022 09:11:41 +0000 Subject: [PATCH] fix several typo Signed-off-by: chymy --- cmd/kubeadm/app/cmd/kubeconfig.go | 2 +- cmd/kubeadm/app/cmd/util/join.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/kubeadm/app/cmd/kubeconfig.go b/cmd/kubeadm/app/cmd/kubeconfig.go index 59595825a2f..db39637c961 100644 --- a/cmd/kubeadm/app/cmd/kubeconfig.go +++ b/cmd/kubeadm/app/cmd/kubeconfig.go @@ -111,7 +111,7 @@ func newCmdUserKubeConfig(out io.Writer) *cobra.Command { // Add command specific flags cmd.Flags().StringVar(&token, options.TokenStr, token, "The token that should be used as the authentication mechanism for this kubeconfig, instead of client certificates") cmd.Flags().StringVar(&clientName, "client-name", clientName, "The name of user. It will be used as the CN if client certificates are created") - cmd.Flags().StringSliceVar(&organizations, "org", organizations, "The orgnizations of the client certificate. It will be used as the O if client certificates are created") + cmd.Flags().StringSliceVar(&organizations, "org", organizations, "The organizations of the client certificate. It will be used as the O if client certificates are created") cmd.Flags().DurationVar(&validityPeriod, "validity-period", kubeadmconstants.CertificateValidity, "The validity period of the client certificate. It is an offset from the current time.") cmd.MarkFlagRequired(options.CfgPath) diff --git a/cmd/kubeadm/app/cmd/util/join.go b/cmd/kubeadm/app/cmd/util/join.go index f500168f68d..a22fcd3fa6e 100644 --- a/cmd/kubeadm/app/cmd/util/join.go +++ b/cmd/kubeadm/app/cmd/util/join.go @@ -38,13 +38,13 @@ var joinCommandTemplate = template.Must(template.New("join").Parse(`` + )) // GetJoinWorkerCommand returns the kubeadm join command for a given token and -// and Kubernetes cluster (the current cluster in the kubeconfig file) +// Kubernetes cluster (the current cluster in the kubeconfig file) func GetJoinWorkerCommand(kubeConfigFile, token string, skipTokenPrint bool) (string, error) { return getJoinCommand(kubeConfigFile, token, "", false, skipTokenPrint, false) } // GetJoinControlPlaneCommand returns the kubeadm join command for a given token and -// and Kubernetes cluster (the current cluster in the kubeconfig file) +// Kubernetes cluster (the current cluster in the kubeconfig file) func GetJoinControlPlaneCommand(kubeConfigFile, token, key string, skipTokenPrint, skipCertificateKeyPrint bool) (string, error) { return getJoinCommand(kubeConfigFile, token, key, true, skipTokenPrint, skipCertificateKeyPrint) }