mark 'kubeadm config view' command as deprecated

This commit is contained in:
SataQiu 2020-07-02 10:55:38 +08:00
parent 07586f67d9
commit 2b7af10276

View File

@ -305,6 +305,7 @@ func NewCmdConfigView(out io.Writer, kubeConfigFile *string) *cobra.Command {
return &cobra.Command{ return &cobra.Command{
Use: "view", Use: "view",
Short: "View the kubeadm configuration stored inside the cluster", Short: "View the kubeadm configuration stored inside the cluster",
Deprecated: "This command is deprecated and will be removed in a future release, please use 'kubectl get cm -o yaml -n kube-system kubeadm-config' to get the kubeadm config directly.",
Long: fmt.Sprintf(dedent.Dedent(` Long: fmt.Sprintf(dedent.Dedent(`
Using this command, you can view the ConfigMap in the cluster where the configuration for kubeadm is located. Using this command, you can view the ConfigMap in the cluster where the configuration for kubeadm is located.