Clean up "kops export"

This commit is contained in:
John Gardiner Myers 2021-07-12 08:49:53 -07:00
parent 46aafd55a8
commit 3091b76ffc
2 changed files with 2 additions and 24 deletions

View File

@ -22,28 +22,17 @@ import (
"github.com/spf13/cobra"
"k8s.io/kops/cmd/kops/util"
"k8s.io/kubectl/pkg/util/i18n"
"k8s.io/kubectl/pkg/util/templates"
)
var (
exportLong = templates.LongDesc(i18n.T(`
Export configurations from a cluster.`))
exportExample = templates.Examples(i18n.T(`
# export a kubecfg file
kops export kubecfg k8s-cluster.example.com
`))
exportShort = i18n.T(`Export configuration.`)
)
func NewCmdExport(f *util.Factory, out io.Writer) *cobra.Command {
cmd := &cobra.Command{
Use: "export",
Short: exportShort,
Long: exportLong,
Example: exportExample,
Use: "export",
Short: exportShort,
}
// create subcommands

View File

@ -5,17 +5,6 @@
Export configuration.
### Synopsis
Export configurations from a cluster.
### Examples
```
# export a kubecfg file
kops export kubecfg k8s-cluster.example.com
```
### Options
```