Skip to content

Commit 37d8201

Browse files
authored
Merge pull request #1881 from prafull01/help-text
✨ Change the webhook GVK in help text to match kb create api
2 parents 593f2e8 + 511258b commit 37d8201

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

pkg/plugins/golang/v2/webhook.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,12 @@ func (p *createWebhookSubcommand) UpdateContext(ctx *plugin.Context) {
5050
ctx.Description = `Scaffold a webhook for an API resource. You can choose to scaffold defaulting,
5151
validating and (or) conversion webhooks.
5252
`
53-
ctx.Examples = fmt.Sprintf(` # Create defaulting and validating webhooks for CRD of group crew, version v1
54-
# and kind FirstMate.
55-
%s create webhook --group crew --version v1 --kind FirstMate --defaulting --programmatic-validation
53+
ctx.Examples = fmt.Sprintf(` # Create defaulting and validating webhooks for CRD of group ship, version v1beta1
54+
# and kind Frigate.
55+
%s create webhook --group ship --version v1beta1 --kind Frigate --defaulting --programmatic-validation
5656
57-
# Create conversion webhook for CRD of group crew, version v1 and kind FirstMate.
58-
%s create webhook --group crew --version v1 --kind FirstMate --conversion
57+
# Create conversion webhook for CRD of group shio, version v1beta1 and kind Frigate.
58+
%s create webhook --group ship --version v1beta1 --kind Frigate --conversion
5959
`,
6060
ctx.CommandName, ctx.CommandName)
6161

pkg/plugins/golang/v3/webhook.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,12 @@ func (p *createWebhookSubcommand) UpdateContext(ctx *plugin.Context) {
5757
ctx.Description = `Scaffold a webhook for an API resource. You can choose to scaffold defaulting,
5858
validating and (or) conversion webhooks.
5959
`
60-
ctx.Examples = fmt.Sprintf(` # Create defaulting and validating webhooks for CRD of group crew, version v1
61-
# and kind FirstMate.
62-
%s create webhook --group crew --version v1 --kind FirstMate --defaulting --programmatic-validation
60+
ctx.Examples = fmt.Sprintf(` # Create defaulting and validating webhooks for CRD of group ship, version v1beta1
61+
# and kind Frigate.
62+
%s create webhook --group ship --version v1beta1 --kind Frigate --defaulting --programmatic-validation
6363
64-
# Create conversion webhook for CRD of group crew, version v1 and kind FirstMate.
65-
%s create webhook --group crew --version v1 --kind FirstMate --conversion
64+
# Create conversion webhook for CRD of group ship, version v1beta1 and kind Frigate.
65+
%s create webhook --group ship --version v1beta1 --kind Frigate --conversion
6666
`,
6767
ctx.CommandName, ctx.CommandName)
6868

0 commit comments

Comments
 (0)