constraint

package
v3.0.4-beta.2+incompat... Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2019 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasFinalizer

func HasFinalizer(instance *unstructured.Unstructured) bool

func RemoveFinalizer

func RemoveFinalizer(instance *unstructured.Unstructured)

Types

type Adder

type Adder struct {
	Opa *opa.Client
}

func (*Adder) Add

func (a *Adder) Add(mgr manager.Manager, gvk schema.GroupVersionKind) error

Add creates a new Constraint 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.

type ReconcileConstraint

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

ReconcileSync reconciles an arbitrary constraint object described by Kind

func (*ReconcileConstraint) Reconcile

func (r *ReconcileConstraint) Reconcile(request reconcile.Request) (reconcile.Result, error)

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 +kubebuilder:rbac:groups=constraints.gatekeeper.sh,resources=*,verbs=get;list;watch;create;update;patch;delete

Jump to

Keyboard shortcuts

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