controller

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterPolicyReconciler added in v0.0.4

type ClusterPolicyReconciler struct {
	client.Client
	Scheme         *runtime.Scheme
	Log            logr.Logger
	ExceptionList  map[string]kyvernov1.ClusterPolicy
	ExceptionKinds []string
}

ClusterPolicyReconciler reconciles a ClusterPolicy object

func (*ClusterPolicyReconciler) CreateOrUpdate added in v0.0.4

func (r *ClusterPolicyReconciler) CreateOrUpdate(ctx context.Context, obj client.Object) error

CreateOrUpdate attempts first to patch the object given but if an IsNotFound error is returned it instead creates the resource.

func (*ClusterPolicyReconciler) Reconcile added in v0.0.4

func (r *ClusterPolicyReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*ClusterPolicyReconciler) SetupWithManager added in v0.0.4

func (r *ClusterPolicyReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type PolicyExceptionReconciler

type PolicyExceptionReconciler struct {
	client.Client
	Scheme               *runtime.Scheme
	Log                  logr.Logger
	DestinationNamespace string
	Background           bool
}

PolicyExceptionReconciler reconciles a PolicyException object

func (*PolicyExceptionReconciler) CreateOrUpdate added in v0.0.4

func (r *PolicyExceptionReconciler) CreateOrUpdate(ctx context.Context, obj client.Object) error

CreateOrUpdate attempts first to patch the object given but if an IsNotFound error is returned it instead creates the resource.

func (*PolicyExceptionReconciler) Reconcile

func (*PolicyExceptionReconciler) SetupWithManager

func (r *PolicyExceptionReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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