Documentation ¶
Index ¶
- Constants
- type CallbackPayloadReconciler
- type CallbackUrlReconciler
- func (r *CallbackUrlReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *CallbackUrlReconciler) SetCondition(conditionType string, status metav1.ConditionStatus, reason, message string)
- func (r *CallbackUrlReconciler) SetupWithManager(mgr ctrl.Manager) error
- func (r *CallbackUrlReconciler) UpdateStatusNow(ctx context.Context, originalErr error) (ctrl.Result, error)
Constants ¶
const (
RequeueAfter = 10 * time.Second
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CallbackPayloadReconciler ¶
CallbackPayloadReconciler reconciles a CallbackPayload object
func (*CallbackPayloadReconciler) Reconcile ¶
func (r *CallbackPayloadReconciler) 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 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