File tree 1 file changed +3
-3
lines changed
docs/book/src/plugins/extending
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -184,10 +184,10 @@ These utilities allow you to:
184
184
### Example
185
185
186
186
If you need to insert custom content into a scaffolded file,
187
- you can use the ` Insert ` function provided by the plugin utilities:
187
+ you can use the ` InsertCode ` function provided by the plugin utilities:
188
188
189
189
``` go
190
- pluginutil.Insert (file, location, content )
190
+ pluginutil.InsertCode (filename, target, code )
191
191
```
192
192
193
193
This approach enables you to extend and modify the generated
@@ -402,7 +402,7 @@ creating features or plugins that can rely on this information.
402
402
[ plugin-sub-command ] : https://pkg.go.dev/sigs.k8s.io/kubebuilder/v4/pkg/plugin#Subcommand
403
403
[ plugin-update-meta ] : https://pkg.go.dev/sigs.k8s.io/kubebuilder/v4/pkg/plugin#UpdatesMetadata
404
404
[ markers-scaffold ] : ./../../reference/markers/scaffold.md
405
- [ kb-utils ] : ./../../../../.. /pkg/plugin/util/util.go
405
+ [ kb-utils ] : https://github.com/kubernetes-sigs/kubebuilder/blob/book-v4 /pkg/plugin/util/util.go
406
406
[ project-file-config ] : ./../../reference/project-config.md
407
407
[ cli ] : ./../../../../../pkg/cli
408
408
[ kb-go-plugin ] : ./../../../../../pkg/plugins/golang/v4
You can’t perform that action at this time.
0 commit comments