Commit de6c7f75 authored by xiangpengzhao's avatar xiangpengzhao

Add an alias `update` for subcommand `enable`

parent 104d8976
...@@ -57,7 +57,7 @@ var ( ...@@ -57,7 +57,7 @@ var (
`) `)
kubeletEnableDynamicConfigLongDesc = normalizer.LongDesc(` kubeletEnableDynamicConfigLongDesc = normalizer.LongDesc(`
Enables dynamic kubelet configuration on node. This should be run on nodes. Enables or updates dynamic kubelet configuration on node. This should be run on nodes.
Please note that the kubelet configuration can be passed to kubeadm as a value into the master configuration file. Please note that the kubelet configuration can be passed to kubeadm as a value into the master configuration file.
` + cmdutil.AlphaDisclaimer) ` + cmdutil.AlphaDisclaimer)
...@@ -160,7 +160,8 @@ func NewCmdKubeletEnableDynamicConfig() *cobra.Command { ...@@ -160,7 +160,8 @@ func NewCmdKubeletEnableDynamicConfig() *cobra.Command {
var cfgPath string var cfgPath string
cmd := &cobra.Command{ cmd := &cobra.Command{
Use: "enable", Use: "enable",
Short: "Enables dynamic kubelet configuration on node", Aliases: []string{"update"},
Short: "Enables or updates dynamic kubelet configuration on node",
Long: kubeletEnableDynamicConfigLongDesc, Long: kubeletEnableDynamicConfigLongDesc,
Example: kubeletEnableDynamicConfigExample, Example: kubeletEnableDynamicConfigExample,
Run: func(cmd *cobra.Command, args []string) { Run: func(cmd *cobra.Command, args []string) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment