Documentation ¶
Index ¶
- func GetParentObject(ctx context.Context, c client.Client, kind, group string, ...) error
- func OwnedByKrok(annotations map[string]string) bool
- type KrokEventReconciler
- func (r *KrokEventReconciler) ConditionReason(job *batchv1.Job, jobConditionType batchv1.JobConditionType) string
- func (r *KrokEventReconciler) HasCondition(job *batchv1.Job, jobConditionType batchv1.JobConditionType) bool
- func (r *KrokEventReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *KrokEventReconciler) SetupWithManager(mgr ctrl.Manager) error
- type KrokRepositoryReconciler
- type PodDeletePredicate
- type PodReconciler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetParentObject ¶
func GetParentObject(ctx context.Context, c client.Client, kind, group string, source, parent client.Object) error
GetParentObject returns the first find in the owner references of a given object. T denotes the type that the user wants returned.
func OwnedByKrok ¶
Types ¶
type KrokEventReconciler ¶
type KrokEventReconciler struct { client.Client Scheme *runtime.Scheme CommandTimeout int PlatformProviders map[string]providers.Platform SourceController *sourceController.Server }
KrokEventReconciler reconciles a KrokEvent object
func (*KrokEventReconciler) ConditionReason ¶
func (r *KrokEventReconciler) ConditionReason(job *batchv1.Job, jobConditionType batchv1.JobConditionType) string
ConditionReason returns the reason the condition had if any.
func (*KrokEventReconciler) HasCondition ¶
func (r *KrokEventReconciler) HasCondition(job *batchv1.Job, jobConditionType batchv1.JobConditionType) bool
HasCondition verifies if a Job has a given condition in its list of conditions.
func (*KrokEventReconciler) 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.
func (*KrokEventReconciler) SetupWithManager ¶
func (r *KrokEventReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type KrokRepositoryReconciler ¶
type KrokRepositoryReconciler struct { client.Client Scheme *runtime.Scheme HookBase string HookProtocol string PlatformProviders map[string]providers.Platform }
KrokRepositoryReconciler reconciles a KrokRepository object
func (*KrokRepositoryReconciler) Reconcile ¶
func (r *KrokRepositoryReconciler) 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. For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.13.0/pkg/reconcile
func (*KrokRepositoryReconciler) SetupWithManager ¶
func (r *KrokRepositoryReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type PodDeletePredicate ¶
PodDeletePredicate triggers an update event when a Pod is deleted.
func (PodDeletePredicate) Update ¶
func (PodDeletePredicate) Update(e event.UpdateEvent) bool
type PodReconciler ¶
PodReconciler reconciles Pod objects
func (*PodReconciler) SetupWithManager ¶
func (r *PodReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.