mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 10:51:29 +00:00
Merge pull request #110684 from chymy/fix-typo-for-kubeadm
fix several typo
This commit is contained in:
commit
fd20191212
@ -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)
|
||||
|
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user