constrainttemplate

package
v3.0.3+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2019 License: Apache-2.0 Imports: 22 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adder

type Adder struct {
	Opa          opa.Client
	WatchManager *watch.WatchManager
}

func (*Adder) Add

func (a *Adder) Add(mgr manager.Manager) error

Add creates a new ConstraintTemplate Controller and adds it to the Manager with default RBAC. The Manager will set fields on the Controller and Start it when the Manager is Started.

func (*Adder) InjectOpa

func (a *Adder) InjectOpa(o opa.Client)

func (*Adder) InjectWatchManager

func (a *Adder) InjectWatchManager(wm *watch.WatchManager)

type ReconcileConstraintTemplate

type ReconcileConstraintTemplate struct {
	client.Client
	// contains filtered or unexported fields
}

ReconcileConstraintTemplate reconciles a ConstraintTemplate object

func (*ReconcileConstraintTemplate) Reconcile

Reconcile reads that state of the cluster for a ConstraintTemplate object and makes changes based on the state read and what is in the ConstraintTemplate.Spec Automatically generate RBAC rules to allow the Controller to read and write CRDs +kubebuilder:rbac:groups=apiextensions.k8s.io,resources=customresourcedefinitions,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=templates.gatekeeper.sh,resources=constrainttemplates,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=templates.gatekeeper.sh,resources=constrainttemplates/status,verbs=get;update;patch

Jump to

Keyboard shortcuts

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