Merge pull request #119303 from abidmunirmalik/kubectl_doc_fix

fixes the issue in the documentation of kubectl events
This commit is contained in:
Kubernetes Prow Robot 2023-10-01 09:50:44 -07:00 committed by GitHub
commit 0b63390add
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -121,7 +121,7 @@ func NewCmdEvents(restClientGetter genericclioptions.RESTClientGetter, streams g
flags := NewEventsFlags(restClientGetter, streams)
cmd := &cobra.Command{
Use: fmt.Sprintf("events [(-o|--output=)%s] [--for TYPE/NAME] [--watch] [--event=Normal,Warning]", strings.Join(flags.PrintFlags.AllowedFormats(), "|")),
Use: fmt.Sprintf("events [(-o|--output=)%s] [--for TYPE/NAME] [--watch] [--types=Normal,Warning]", strings.Join(flags.PrintFlags.AllowedFormats(), "|")),
DisableFlagsInUseLine: true,
Short: i18n.T("List events"),
Long: eventsLong,