Skip to content

Commit af29f81

Browse files
authored
Merge pull request kubernetes#92740 from SataQiu/deprecate-config-view-20200702
Mark 'kubeadm config view' command as deprecated
2 parents 046ac51 + 2b7af10 commit af29f81

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cmd/kubeadm/app/cmd/config.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,8 +303,9 @@ func NewCmdConfigMigrate(out io.Writer) *cobra.Command {
303303
// NewCmdConfigView returns cobra.Command for "kubeadm config view" command
304304
func NewCmdConfigView(out io.Writer, kubeConfigFile *string) *cobra.Command {
305305
return &cobra.Command{
306-
Use: "view",
307-
Short: "View the kubeadm configuration stored inside the cluster",
306+
Use: "view",
307+
Short: "View the kubeadm configuration stored inside the cluster",
308+
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.",
308309
Long: fmt.Sprintf(dedent.Dedent(`
309310
Using this command, you can view the ConfigMap in the cluster where the configuration for kubeadm is located.
310311

0 commit comments

Comments
 (0)