Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeCommitPoller ¶
func MakeCommitPoller(cl *http.Client, repo *pollingv1.PolledRepository, endpoint, authToken string) git.CommitPoller
MakeCommitPoller creates the correct poller from the repository with authentication. TODO: allow custom TLS
Types ¶
type EventDispatcher ¶
type EventDispatcher interface {
Dispatch(ctx context.Context, repo pollingv1.PolledRepository, commit map[string]any) error
}
EventDispatcher implementations publish the commit to the endpoint in the PolledRepository.
type PolledRepositoryReconciler ¶
type PolledRepositoryReconciler struct { client.Client Log logr.Logger Scheme *runtime.Scheme HTTPClient *http.Client PollerFactory pollerFactoryFunc EventDispatcher secrets.SecretGetter }
PolledRepositoryReconciler reconciles a PolledRepository object
func (*PolledRepositoryReconciler) Reconcile ¶
func (r *PolledRepositoryReconciler) 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 (*PolledRepositoryReconciler) SetupWithManager ¶
func (r *PolledRepositoryReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
Click to show internal directories.
Click to hide internal directories.