code: func NewCmdConfigView(out io.Writer, kubeConfigFile *string) *cobra.Command {
  	return &cobra.Command{
  		Use:   "view",
  		Short: "View the kubeadm configuration stored inside the cluster",
  		Long: fmt.Sprintf(dedent.Dedent(`
  			Using this command, you can view the ConfigMap in the cluster where the configuration for kubeadm is located.
  
  			The configuration is located in the %q namespace in the %q ConfigMap.
  		`), metav1.NamespaceSystem, constants.KubeadmConfigConfigMap),
  		Run: func(cmd *cobra.Command, args []string) {
  			klog.V(1).Infoln("[config] retrieving ClientSet from file")
  			client, err := kubeconfigutil.ClientSetFromFile(*kubeConfigFile)
  			kubeadmutil.CheckErr(err)
  
  			err = RunConfigView(out, client)
  			kubeadmutil.CheckErr(err)
  		},
  	}
  }
docs: // NewCmdConfigView returns cobra.Command for "kubeadm config view" command