controllers

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NamespaceReconciler

type NamespaceReconciler struct {
	client.Client
	ResourceCloner
	LabelKeys                  []string
	AnnotationKeys             []string
	SubNamespaceLabelKeys      []string
	SubNamespaceAnnotationKeys []string
	Watched                    []*unstructured.Unstructured
}

NamespaceReconciler reconciles a Namespace object

func (*NamespaceReconciler) Reconcile

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

Reconcile implements reconcile.Reconciler interface.

func (*NamespaceReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type PropagateController

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

PropagateController propagates objects of a namespace-scoped resource.

func NewPropagateController

func NewPropagateController(res *unstructured.Unstructured, cloner ResourceCloner) *PropagateController

NewPropagateController creates a new PropagateController. The GroupVersionKind of `res` must be set.

func (*PropagateController) Reconcile

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

Reconcile implements reconcile.Reconciler interface.

func (*PropagateController) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type ResourceCloner added in v1.4.0

type ResourceCloner struct {
	LabelKeyExcludes      []string
	AnnotationKeyExcludes []string
}

type SubNamespaceReconciler

type SubNamespaceReconciler struct {
	client.Client
}

SubNamespaceReconciler reconciles a SubNamespace object

func (*SubNamespaceReconciler) Reconcile

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

Reconcile implements reconcile.Reconciler interface.

func (*SubNamespaceReconciler) SetupWithManager

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