Skip to content

Commit

Permalink
Merge pull request #3120 from qingwave/rbac-doc
Browse files Browse the repository at this point in the history
📖 add details rbac doc in tutorial
  • Loading branch information
k8s-ci-robot committed Dec 9, 2022
2 parents 880e827 + fd0325a commit 3adb0d3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/book/src/cronjob-tutorial/testdata/emptycontroller.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,16 @@ needed to run. As we add more functionality, we'll need to revisit these.
// +kubebuilder:rbac:groups=batch.tutorial.kubebuilder.io,resources=cronjobs,verbs=get;list;watch;create;update;patch;delete
// +kubebuilder:rbac:groups=batch.tutorial.kubebuilder.io,resources=cronjobs/status,verbs=get;update;patch

/*
The `ClusterRole` manifest at `config/rbac/role.yaml` is generated from the above markers via controller-gen with the following command:
*/

// make manifests

/*
NOTE: If you receive an error, please run the specified command in the error and re-run `make manifests`.
*/

/*
`Reconcile` actually performs the reconciling for a single named object.
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
Expand Down

0 comments on commit 3adb0d3

Please sign in to comment.