From 2b7af10276023f17872202745ca2d3214d319079 Mon Sep 17 00:00:00 2001 From: SataQiu <1527062125@qq.com> Date: Thu, 2 Jul 2020 10:55:38 +0800 Subject: [PATCH] mark 'kubeadm config view' command as deprecated --- cmd/kubeadm/app/cmd/config.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cmd/kubeadm/app/cmd/config.go b/cmd/kubeadm/app/cmd/config.go index 73bdd809223..ad99a04f56b 100644 --- a/cmd/kubeadm/app/cmd/config.go +++ b/cmd/kubeadm/app/cmd/config.go @@ -303,8 +303,9 @@ func NewCmdConfigMigrate(out io.Writer) *cobra.Command { // NewCmdConfigView returns cobra.Command for "kubeadm config view" command func NewCmdConfigView(out io.Writer, kubeConfigFile *string) *cobra.Command { return &cobra.Command{ - Use: "view", - Short: "View the kubeadm configuration stored inside the cluster", + Use: "view", + 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(` Using this command, you can view the ConfigMap in the cluster where the configuration for kubeadm is located.