Skip to content

Commit

Permalink
Merge pull request #4010 from natasha41575/openapicommanddocs
Browse files Browse the repository at this point in the history
fix openapi command help page
  • Loading branch information
k8s-ci-robot authored Jun 23, 2021
2 parents 936ac37 + 217e5c7 commit dac84d8
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 dac84d8

Please sign in to comment.