controller

package
v0.1.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 21, 2018 License: Apache-2.0 Imports: 0 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL