controllers

package
v0.0.0-...-913fb0f Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2022 License: GPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RequeueAfter = 10 * time.Second
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CallbackPayloadReconciler

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

CallbackPayloadReconciler reconciles a CallbackPayload object

func (*CallbackPayloadReconciler) 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 CallbackPayload 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 (*CallbackPayloadReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type CallbackUrlReconciler

type CallbackUrlReconciler struct {
	client.Client
	Scheme      *runtime.Scheme
	CallbackUrl *v1alpha1.CallbackUrl
}

CallbackUrlReconciler reconciles a CallbackUrl object

func (*CallbackUrlReconciler) Reconcile

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

func (*CallbackUrlReconciler) SetCondition

func (r *CallbackUrlReconciler) SetCondition(conditionType string, status metav1.ConditionStatus, reason, message string)

Set status condition helper

func (*CallbackUrlReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

func (*CallbackUrlReconciler) UpdateStatusNow

func (r *CallbackUrlReconciler) UpdateStatusNow(ctx context.Context, originalErr error) (ctrl.Result, error)

Force object status update. Returns a reconcile result

Jump to

Keyboard shortcuts

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