From f3d7e4306e319f4dd5fefd4c9a03bdddcd980a55 Mon Sep 17 00:00:00 2001 From: prafull01 Date: Sat, 5 Dec 2020 01:46:45 +0530 Subject: [PATCH] :ghost: Change the webhook GVK in help text to match kb create api --- pkg/plugins/golang/v3/webhook.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkg/plugins/golang/v3/webhook.go b/pkg/plugins/golang/v3/webhook.go index 85f70dbf922..51134c6b11e 100644 --- a/pkg/plugins/golang/v3/webhook.go +++ b/pkg/plugins/golang/v3/webhook.go @@ -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)