Documentation ¶
Overview ¶
The controller package describes comment directives that may be applied to controllers
Example ¶
package main import () func main() { // +kubebuilder:controller:group=foo,version=v1beta1,kind=Bar,resource=bars // +kubebuilder:rbac:groups=apps,resources=deployments,verbs=get;list;watch;create;update;patch;delete // +kubebuilder:informers:group=apps,version=v1,kind=Deployment // +kubebuilder:rbac:groups=core,resources=pods,verbs=get;watch;list // +kubebuilder:informers:group=core,version=v1,kind=Pod type FooController struct{} }
Output:
Index ¶
Examples ¶
Constants ¶
View Source
const Controller = "// +kubebuilder:controller:group=,version=,kind=,resource="
Controller annotates a type as being a controller for a specific resource
View Source
const Informers = "// +kubebuilder:informers:group=core,version=v1,kind=Pod"
Informers indicates that an informer must be started for this controller
View Source
const RBAC = "// +kubebuilder:rbac:groups=<group1;group2>,resources=<resource1;resource2>,verbs=<verb1;verb2>"
RBAC annotates a controller struct as needing an RBAC rule to run
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.