controllers

package
v0.0.0-...-dfa7a3b Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Funcs

type Funcs struct {
	CreateFunc  func(event.CreateEvent) bool
	DeleteFunc  func(event.DeleteEvent) bool
	UpdateFunc  func(event.UpdateEvent) bool
	GenericFunc func(event.GenericEvent) bool
}

Funcs implements Predicate.

type Predicate

type Predicate interface {
	Create(event.CreateEvent) bool
	Delete(event.DeleteEvent) bool
	Update(event.UpdateEvent) bool
	Generic(event.GenericEvent) bool
}

Predicate filters events before enqueuing the keys.

type ProjectAccessReconciler

type ProjectAccessReconciler struct {
	client.Client
	Scheme *runtime.Scheme
}

ProjectAccessReconciler reconciles a ProjectAccess object

func (*ProjectAccessReconciler) Reconcile

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

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the ProjectAccess object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.11.0/pkg/reconcile

func (*ProjectAccessReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type ProjectNetworkPolicyReconciler

type ProjectNetworkPolicyReconciler struct {
	client.Client
	Scheme *runtime.Scheme
}

ProjectNetworkPolicyReconciler reconciles a ProjectNetworkPolicy object

func (*ProjectNetworkPolicyReconciler) Reconcile

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the ProjectNetworkPolicy object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.11.0/pkg/reconcile

func (*ProjectNetworkPolicyReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type ProjectReconciler

type ProjectReconciler struct {
	client.Client
	Scheme *runtime.Scheme
}

ProjectReconciler reconciles a Project object

func (*ProjectReconciler) Reconcile

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

func (*ProjectReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type ProjectRoleReconciler

type ProjectRoleReconciler struct {
	client.Client
	Scheme *runtime.Scheme
}

ProjectRoleReconciler reconciles a ProjectRole object

func (*ProjectRoleReconciler) Reconcile

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

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the ProjectRole object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.11.0/pkg/reconcile

func (*ProjectRoleReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type UpdateEvent

type UpdateEvent struct {
	// ObjectOld is the object from the event.
	ObjectOld runtime.Object

	// ObjectNew is the object from the event.
	ObjectNew runtime.Object
}

Jump to

Keyboard shortcuts

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