@@ -49,9 +49,9 @@ the `create api` and `create webhook` subcommands.
49
49
Plugins are responsible for implementing the code that will be executed when the sub-commands are called.
50
50
You can create a new plugin by implementing the [ Plugin interface] [ plugin-interface ] .
51
51
52
- On top of being a ` Base ` , a plugin should also implement the [ ` SubcommandMetadata ` ] [ plugin-subc ]
53
- interface so it can be run with a CLI. It optionally to set custom help
54
- text for the target command; this method can be a no-op, which will
52
+ On top of being a ` Base ` , a plugin should also implement the [ ` SubcommandMetadata ` ] [ plugin-subc-metadata ]
53
+ interface so it can be run with a CLI. Optionally, a custom help
54
+ text for the target command can be set ; this method can be a no-op, which will
55
55
preserve the default help text set by the [ cobra] [ cobra ] command
56
56
constructors.
57
57
@@ -395,6 +395,7 @@ creating features or plugins that can rely on this information.
395
395
[ plugin-interface ] : https://pkg.go.dev/sigs.k8s.io/kubebuilder/v4/pkg/plugin
396
396
[ machinery ] : https://github.com/kubernetes-sigs/kubebuilder/tree/master/pkg/machinery
397
397
[ plugin-subc ] : https://pkg.go.dev/sigs.k8s.io/kubebuilder/v4/pkg/plugin#Subcommand
398
+ [ plugin-subc-metadata ] : https://pkg.go.dev/sigs.k8s.io/kubebuilder/v4/pkg/plugin#SubcommandMetadata
398
399
[ plugin-version-type ] : https://pkg.go.dev/sigs.k8s.io/kubebuilder/v4/pkg/plugin#Version
399
400
[ bundle-plugin-doc ] : https://pkg.go.dev/sigs.k8s.io/kubebuilder/v4/pkg/plugin#Bundle
400
401
[ deprecate-plugin-doc ] : https://pkg.go.dev/sigs.k8s.io/kubebuilder/v4/pkg/plugin#Deprecated
@@ -408,4 +409,4 @@ creating features or plugins that can rely on this information.
408
409
[ cobra ] : https://github.com/spf13/cobra
409
410
[ external-plugin ] : external-plugins.md
410
411
[ deploy-image ] : ./../available/deploy-image-plugin-v1-alpha.md
411
- [ upgrade-assistant ] : ./../../reference/rescaffold.md
412
+ [ upgrade-assistant ] : ./../../reference/rescaffold.md
0 commit comments