Skip to content

Commit

Permalink
fix openapi command help page
Browse files Browse the repository at this point in the history
  • Loading branch information
natasha41575 committed Jun 23, 2021
1 parent 936ac37 commit 217e5c7
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 8 deletions.
2 changes: 0 additions & 2 deletions kustomize/commands/openapi/fetch/fetch.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ in the user's kubeconfig`,
Run: func(cmd *cobra.Command, args []string) {
printSchema(w)
},
Hidden: true,
}

return &infoCmd
}

Expand Down
3 changes: 0 additions & 3 deletions kustomize/commands/openapi/info/info.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,13 @@ 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",
Example: `kustomize openapi info`,
Run: func(cmd *cobra.Command, args []string) {
fmt.Fprintln(w, kubernetesapi.Info)
},
Hidden: true,
}

return &infoCmd
}
3 changes: 0 additions & 3 deletions kustomize/commands/openapi/openapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand All @@ -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
}

0 comments on commit 217e5c7

Please sign in to comment.