Skip to content
This repository has been archived by the owner on May 7, 2024. It is now read-only.

Commit

Permalink
Add deprecation notices to create keypair, create kubeconfig, and…
Browse files Browse the repository at this point in the history
… `list nodepools` commands (#614)

* Add deprecation notices to create keypair and create kubeconfig commands

* Add deprecation notices to list nodepools command

* Fix typo and align kubectl gs commands suggested
  • Loading branch information
kuosandys committed Nov 4, 2021
1 parent 042d665 commit 67c2be4
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 8 deletions.
2 changes: 1 addition & 1 deletion commands/create/cluster/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ suppress the creation of the default node pool by setting the flag
--create-default-nodepool=false
`,
Deprecated: `gsctl is being phased out in favour of our 'kubectl gs' plugin.
We recommened you familiarize yourself with the 'kubectl gs template' command as a replacement for this.
We recommend you familiarize yourself with the 'kubectl gs template cluster' command as a replacement for this.
For more details see: https://docs.giantswarm.io/ui-api/kubectl-gs/template-cluster/
`,
PreRun: printValidation,
Expand Down
11 changes: 8 additions & 3 deletions commands/create/keypair/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,14 @@ import (
var (
// Command performs the "create keypair" function,
Command = &cobra.Command{
Use: "keypair",
Short: "Create key pair",
Long: `Creates a new key pair for a cluster`,
Use: "keypair",
Short: "Create key pair",
Long: `Creates a new key pair for a cluster
`,
Deprecated: `gsctl is being phased out in favour of our 'kubectl gs' plugin.
We recommend you familiarize yourself with the 'kubectl gs login' command as a replacement for this.
For more details see: https://docs.giantswarm.io/ui-api/kubectl-gs/login/
`,
PreRun: printValidation,
Run: printResult,
}
Expand Down
4 changes: 4 additions & 0 deletions commands/create/kubeconfig/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ Examples:
gsctl create kubeconfig -c my0c3 --ttl 3h -d "Key pair living for only 3 hours"
gsctl create kubeconfig -c "Development cluster" --certificate-organizations system:masters
`,
Deprecated: `gsctl is being phased out in favour of our 'kubectl gs' plugin.
We recommend you familiarize yourself with the 'kubectl gs login' command as a replacement for this.
For more details see: https://docs.giantswarm.io/ui-api/kubectl-gs/login/
`,
PreRun: createKubeconfigPreRunOutput,
Run: createKubeconfigRunOutput,
Expand Down
2 changes: 1 addition & 1 deletion commands/create/nodepool/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ Examples:
`,

Deprecated: `gsctl is being phased out in favour of our 'kubectl gs' plugin.
We recommened you familiarize yourself with the 'kubectl gs template' command as a replacement for this.
We recommend you familiarize yourself with the 'kubectl gs template nodepool' command as a replacement for this.
For more details see: https://docs.giantswarm.io/ui-api/kubectl-gs/template-nodepool/
`,

Expand Down
2 changes: 1 addition & 1 deletion commands/list/clusters/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Examples:
gsctl list clusters --sort org
`,
Deprecated: `gsctl is being phased out in favour of our 'kubectl gs' plugin.
We recommened you familiarize yourself with the 'kubectl gs get' command as a replacement for this.
We recommend you familiarize yourself with the 'kubectl gs get clusters' command as a replacement for this.
For more details see: https://docs.giantswarm.io/ui-api/kubectl-gs/get-clusters/
`,
PreRun: printValidation,
Expand Down
7 changes: 6 additions & 1 deletion commands/list/nodepools/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,12 @@ columns:
To see all available details for a cluster, use 'gsctl show nodepool <cluster-id>/<nodepool-id>'.
To list all clusters you have access to, use 'gsctl list clusters'.`,
To list all clusters you have access to, use 'gsctl list clusters'.
`,
Deprecated: `gsctl is being phased out in favour of our 'kubectl gs' plugin.
We recommend you familiarize yourself with the 'kubectl gs get nodepools' command as a replacement for this.
For more details see: https://docs.giantswarm.io/ui-api/kubectl-gs/get-nodepools/
`,
PreRun: printValidation,
Run: printResult,
}
Expand Down
2 changes: 1 addition & 1 deletion commands/list/releases/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ Output
- CALICO: The Project Calico version provided.
`,
Deprecated: `gsctl is being phased out in favour of our 'kubectl gs' plugin.
We recommened you familiarize yourself with the 'kubectl gs get releases' command as a replacement for this.
We recommend you familiarize yourself with the 'kubectl gs get releases' command as a replacement for this.
For more details see: https://docs.giantswarm.io/ui-api/kubectl-gs/get-releases/
`,
PreRun: printValidation,
Expand Down

0 comments on commit 67c2be4

Please sign in to comment.