Documentation
¶
Overview ¶
githubevent.go reconciles the GitHubEvent CR: routes create/update/ delete through the core CQRS engine and, on setup, wires the GitHubEvent domain's mediator, GitHub provider, and service into the domain registry. It also watches owned Argo Events Sensors so Sensor status changes trigger a re-reconcile of the owning GitHubEvent.
The finalizer (githuEventFinalizer) gates deletion until CleanupPrerequisites and Teardown have both run successfully.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitHubEventReconciler ¶
type GitHubEventReconciler struct {
client.Client
Scheme *runtime.Scheme
Log logr.Logger
Runtime *runtimeinfra.Runtime
GitHubEventService *githubeventapp.GitHubEventService
Recorder events.EventRecorder
GitHubEventMediator *githubevent.Mediator
}
GitHubEventReconciler reconciles a GitHubEvent object
func (*GitHubEventReconciler) Reconcile ¶
func (r *GitHubEventReconciler) 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 GitHubEvent 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.23.1/pkg/reconcile
func (*GitHubEventReconciler) SetupWithManager ¶
func (r *GitHubEventReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.