fix openapi command help page

This commit is contained in:
Natasha Sarkar
2021-06-22 18:46:34 -07:00
parent 936ac37a2e
commit 217e5c7268
3 changed files with 0 additions and 8 deletions

View File

@@ -20,9 +20,7 @@ in the user's kubeconfig`,
Run: func(cmd *cobra.Command, args []string) {
printSchema(w)
},
Hidden: true,
}
return &infoCmd
}

View File

@@ -13,7 +13,6 @@ import (
// NewCmdInfo makes a new info command.
func NewCmdInfo(w io.Writer) *cobra.Command {
infoCmd := cobra.Command{
Use: "info",
Short: "Prints the `info` field from the kubernetes OpenAPI data",
@@ -21,8 +20,6 @@ func NewCmdInfo(w io.Writer) *cobra.Command {
Run: func(cmd *cobra.Command, args []string) {
fmt.Fprintln(w, kubernetesapi.Info)
},
Hidden: true,
}
return &infoCmd
}

View File

@@ -7,7 +7,6 @@ import (
"io"
"github.com/spf13/cobra"
"sigs.k8s.io/kustomize/cmd/config/configcobra"
"sigs.k8s.io/kustomize/kustomize/v4/commands/openapi/fetch"
"sigs.k8s.io/kustomize/kustomize/v4/commands/openapi/info"
)
@@ -24,7 +23,5 @@ func NewCmdOpenAPI(w io.Writer) *cobra.Command {
openApiCmd.AddCommand(info.NewCmdInfo(w))
openApiCmd.AddCommand(fetch.NewCmdFetch(w))
configcobra.AddCommands(openApiCmd, "openapi")
return openApiCmd
}