Merge pull request #92740 from SataQiu/deprecate-config-view-20200702

Mark 'kubeadm config view' command as deprecated
This commit is contained in:
Kubernetes Prow Robot 2020-07-03 05:04:02 -07:00 committed by GitHub
commit af29f81af6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.