constrainttemplate

package
v3.9.9 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2022 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

View Source
const ErrCreateCode = "create_error"

ErrCreateCode indicates a problem creating a ConstraintTemplate.

View Source
const ErrIngestCode = "ingest_error"

ErrIngestCode indicates a problem creating a ConstraintTemplate.

Variables

This section is empty.

Functions

func RemoveFinalizer

func RemoveFinalizer(instance *v1beta1.ConstraintTemplate)

Types

type Adder

type Adder struct {
	Opa              *constraintclient.Client
	WatchManager     *watch.Manager
	ControllerSwitch *watch.ControllerSwitch
	Tracker          *readiness.Tracker
	GetPod           func(context.Context) (*corev1.Pod, error)
}

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) InjectControllerSwitch

func (a *Adder) InjectControllerSwitch(cs *watch.ControllerSwitch)

func (*Adder) InjectGetPod

func (a *Adder) InjectGetPod(getPod func(context.Context) (*corev1.Pod, error))

func (*Adder) InjectMutationSystem

func (a *Adder) InjectMutationSystem(_ *mutation.System)

func (*Adder) InjectOpa

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

func (*Adder) InjectProviderCache

func (a *Adder) InjectProviderCache(_ *externaldata.ProviderCache)

func (*Adder) InjectTracker

func (a *Adder) InjectTracker(t *readiness.Tracker)

func (*Adder) InjectWatchManager

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

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.

Jump to

Keyboard shortcuts

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