Skip to content

Commit 160dbdd

Browse files
committed
update scaffold and website
1 parent b3c8663 commit 160dbdd

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

scaffold/templates/pkg/operator/operator.go.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ func (o *Operator) GetUncacheableTypes() []client.Object {
109109
}
110110

111111
func (o *Operator) Setup(mgr ctrl.Manager) error {
112-
// Replace this by a real resource generator (e.g. manifests.HelmGenerator, or your own one).
112+
// Replace this by a real resource generator (e.g. HelmGenerator or KustomizeGenerator, or your own one).
113113
resourceGenerator, err := manifests.NewDummyGenerator()
114114
if err != nil {
115115
return errors.Wrap(err, "error initializing resource generator")

website/content/en/docs/generators/helm.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ description: >
1010
Sometimes it is desired to write a component operator (using component-operator-runtime) for some cluster component, which already has a productive Helm chart. Then it can make sense to use the `HelmGenerator` implementation of the `Generator` interface included in this module:
1111

1212
```go
13-
package manifests
13+
package helm
1414

1515
func NewHelmGenerator(
1616
fsys fs.FS,

website/content/en/docs/generators/kustomize.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ In the generation step, first, all the go templates will be rendered, and the re
1818
A kustomize generator can be instantiated by calling the following constructor:
1919

2020
```go
21-
package manifests
21+
package kustomize
2222

2323
func NewKustomizeGenerator(
2424
fsys fs.FS,

website/content/en/docs/usage/overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ func (c *MyComponent) GetStatus() *component.Status {
7474
Now we are settled to replace the controller generated by kubebuilder with the component-operator-runtime reconciler in the scaffolded `main.go`:
7575

7676
```go
77-
// Replace this by a real resource generator (e.g. manifests.HelmGenerator, or your own one).
77+
// Replace this by a real resource generator (e.g. HelmGenerator or KustomizeGenerator, or your own one).
7878
resourceGenerator, err := manifests.NewDummyGenerator()
7979
if err != nil {
8080
setupLog.Error(err, "error initializing resource generator")

0 commit comments

Comments
 (0)