From d73f2b881fe4c5cdc7a2fb83ea0990c94144d2aa Mon Sep 17 00:00:00 2001 From: Jason Vigil Date: Thu, 5 Dec 2024 18:05:45 +0000 Subject: [PATCH] fix: Update help text for controller-builder command The behavior seems to have changed, and help text was not updated. --- .../commands/generatecontroller/generatecontrollercommand.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/tools/controllerbuilder/pkg/commands/generatecontroller/generatecontrollercommand.go b/dev/tools/controllerbuilder/pkg/commands/generatecontroller/generatecontrollercommand.go index 780c9e20ec..f07119b009 100644 --- a/dev/tools/controllerbuilder/pkg/commands/generatecontroller/generatecontrollercommand.go +++ b/dev/tools/controllerbuilder/pkg/commands/generatecontroller/generatecontrollercommand.go @@ -34,7 +34,7 @@ type GenerateControllerOptions struct { } func (o *GenerateControllerOptions) BindFlags(cmd *cobra.Command) { - cmd.Flags().StringVarP(&o.ProtoName, "proto-resource", "p", "", "the GCP resource proto name. It should match the name in the proto apis. i.e. For resource google.storage.v1.bucket, the `--proto-resource` should be `bucket`. If `--kind` is not given, the `--proto-resource` value will also be used as the kind name with a capital letter `Storage`.") + cmd.Flags().StringVarP(&o.ProtoName, "proto-resource", "p", "", "the GCP resource proto name. It should match the name in the proto apis. i.e. For resource google.storage.v1.bucket, the `--proto-resource` should be `Bucket`.") cmd.Flags().StringVarP(&o.Kind, "kind", "k", "", "the KCC resource Kind. requires `--proto-resource`.") }