Skip to content

Commit

Permalink
👻 Change the webhook GVK in help text to match kb create api
Browse files Browse the repository at this point in the history
  • Loading branch information
prafull01 committed Dec 4, 2020
1 parent 6b775b8 commit f3d7e43
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pkg/plugins/golang/v3/webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@ func (p *createWebhookSubcommand) UpdateContext(ctx *plugin.Context) {
ctx.Description = `Scaffold a webhook for an API resource. You can choose to scaffold defaulting,
validating and (or) conversion webhooks.
`
ctx.Examples = fmt.Sprintf(` # Create defaulting and validating webhooks for CRD of group crew, version v1
# and kind FirstMate.
%s create webhook --group crew --version v1 --kind FirstMate --defaulting --programmatic-validation
ctx.Examples = fmt.Sprintf(` # Create defaulting and validating webhooks for CRD of group ship, version v1beta1
# and kind Frigate.
%s create webhook --group ship --version v1beta1 --kind Frigate --defaulting --programmatic-validation
# Create conversion webhook for CRD of group crew, version v1 and kind FirstMate.
%s create webhook --group crew --version v1 --kind FirstMate --conversion
# Create conversion webhook for CRD of group ship, version v1beta1 and kind Frigate.
%s create webhook --group ship --version v1beta1 --kind Frigate --conversion
`,
ctx.CommandName, ctx.CommandName)

Expand Down

0 comments on commit f3d7e43

Please sign in to comment.