Skip to content

Commit fd0325a

Browse files
committed
book: add details rbac doc in tutorial
Signed-off-by: qingwave <[email protected]>
1 parent 880e827 commit fd0325a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/book/src/cronjob-tutorial/testdata/emptycontroller.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,16 @@ needed to run. As we add more functionality, we'll need to revisit these.
5555
// +kubebuilder:rbac:groups=batch.tutorial.kubebuilder.io,resources=cronjobs,verbs=get;list;watch;create;update;patch;delete
5656
// +kubebuilder:rbac:groups=batch.tutorial.kubebuilder.io,resources=cronjobs/status,verbs=get;update;patch
5757

58+
/*
59+
The `ClusterRole` manifest at `config/rbac/role.yaml` is generated from the above markers via controller-gen with the following command:
60+
*/
61+
62+
// make manifests
63+
64+
/*
65+
NOTE: If you receive an error, please run the specified command in the error and re-run `make manifests`.
66+
*/
67+
5868
/*
5969
`Reconcile` actually performs the reconciling for a single named object.
6070
Our [Request](https://pkg.go.dev/sigs.k8s.io/controller-runtime/pkg/reconcile?tab=doc#Request) just has a name, but we can use the client to fetch

0 commit comments

Comments
 (0)