Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mark install and upgrade subcommands deprecated #2258

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion pkg/cmd/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,17 @@ func installCmd(rootFlags *pflag.FlagSet) *cobra.Command {

cmd := &cobra.Command{
Use: "install",
Short: "Install Kubernetes",
Short: "[DEPRECATED] Install Kubernetes",
Long: heredoc.Doc(`
[DEPRECATED] This command is deprecated, please use kubeone apply instead.

Install Kubernetes on pre-existing machines

This command takes KubeOne manifest which contains information about hosts and how the cluster should be provisioned.
It's possible to source information about hosts from Terraform output, using the '--tfjson' flag.
`),
Example: `kubeone install -m mycluster.yaml -t terraformoutput.json`,
Hidden: true,
SilenceErrors: true,
RunE: func(_ *cobra.Command, args []string) error {
gopts, err := persistentGlobalOptions(rootFlags)
Expand Down
5 changes: 4 additions & 1 deletion pkg/cmd/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,17 @@ func upgradeCmd(rootFlags *pflag.FlagSet) *cobra.Command {
opts := &upgradeOpts{}
cmd := &cobra.Command{
Use: "upgrade <manifest>",
Short: "Upgrade Kubernetes",
Short: "[DEPRECATED] Upgrade Kubernetes",
Long: heredoc.Doc(`
[DEPRECATED] This command is deprecated, please use kubeone apply instead.

Upgrade Kubernetes

This command takes KubeOne manifest which contains information about hosts and how the cluster should be provisioned.
It's possible to source information about hosts from Terraform output, using the '--tfjson' flag.
`),
Example: `kubeone upgrade -m mycluster.yaml -t terraformoutput.json`,
Hidden: true,
SilenceErrors: true,
RunE: func(_ *cobra.Command, _ []string) error {
gopts, err := persistentGlobalOptions(rootFlags)
Expand Down