constraintstatus

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: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PodStatusToConstraintMapper

func PodStatusToConstraintMapper(selfOnly bool, packerMap handler.MapFunc) handler.MapFunc

PodStatusToConstraintMapper correlates a ConstraintPodStatus with its corresponding constraint `selfOnly` tells the mapper to only map statuses corresponding to the current pod.

Types

type Adder

type Adder struct {
	Opa              *constraintclient.Client
	WatchManager     *watch.Manager
	ControllerSwitch *watch.ControllerSwitch
	Events           <-chan event.GenericEvent
	IfWatching       func(schema.GroupVersionKind, func() error) (bool, error)
}

func (*Adder) Add

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

Add creates a new Constraint Status Controller and adds it to the Manager. The Manager will set fields on the Controller and Start it when the Manager is Started.

type PackerMap

type PackerMap func(obj client.Object) []reconcile.Request

type ReconcileConstraintStatus

type ReconcileConstraintStatus struct {
	// contains filtered or unexported fields
}

ReconcileConstraintStatus reconciles an arbitrary constraint object described by Kind.

func (*ReconcileConstraintStatus) Reconcile

Reconcile reads that state of the cluster for a constraint object and makes changes based on the state read and what is in the constraint.Spec.

Jump to

Keyboard shortcuts

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