controller

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 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

func main() {}

// +controller:group=foo,version=v1beta1,kind=Bar,resource=bars
// +rbac:groups=apps,resources=deployments,verbs=get;list;watch;create;update;patch;delete
// +informers:group=apps,version=v1,kind=Deployment
// +rbac:groups="",resources=pods,verbs=get;watch;list
// +informers:group=core,version=v1,kind=Pod
type FooController struct{}
Output:

Index

Examples

Constants

View Source
const Controller = "// +controller:group=,version=,kind=,resource="

Controller annotates a type as being a controller for a specific resource

View Source
const Informers = "// +informers:group=core,version=v1,kind=Pod"

Informers indicates that an informer must be started for this controller

View Source
const RBAC = "// +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