sync

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: 16 Imported by: 13

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasFinalizer

func HasFinalizer(obj *unstructured.Unstructured) bool

func RemoveFinalizer

func RemoveFinalizer(c client.Client, obj *unstructured.Unstructured) error

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 Sync 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 ReconcileSync

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

ReconcileSync reconciles an arbitrary constraint object described by Kind

func (*ReconcileSync) Reconcile

func (r *ReconcileSync) 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