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 7, 2020
1 parent 6b775b8 commit 511258b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions pkg/plugins/golang/v2/webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,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 shio, version v1beta1 and kind Frigate.
%s create webhook --group ship --version v1beta1 --kind Frigate --conversion
`,
ctx.CommandName, ctx.CommandName)

Expand Down
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 511258b

Please sign in to comment.