Documentation ¶
Index ¶
- Constants
- func NewCronJob(key types.NamespacedName) *batchv1beta1.CronJob
- type CronJobValues
- type IdlingResourceReconciler
- func (r *IdlingResourceReconciler) Reconcile(ctx context.Context, req reconcile.Request) (reconcile.Result, error)
- func (r *IdlingResourceReconciler) ReconcileCronStrategies(ctx context.Context, instance *kidlev1beta1.IdlingResource) (ctrl.Result, error)
- func (r *IdlingResourceReconciler) ReconcileWithIdler(ctx context.Context, instance *kidlev1beta1.IdlingResource, idler idler.Idler) (ctrl.Result, error)
- func (r *IdlingResourceReconciler) SetupWithManager(mgr ctrl.Manager) error
- type KidleChangedPredicate
Constants ¶
View Source
const ( CronJobContainerName = "kidlectl" CommandIdle = "idle" CommandWakeup = "wakeup" )
Variables ¶
This section is empty.
Functions ¶
func NewCronJob ¶
func NewCronJob(key types.NamespacedName) *batchv1beta1.CronJob
Types ¶
type CronJobValues ¶
type CronJobValues struct {
// contains filtered or unexported fields
}
type IdlingResourceReconciler ¶
type IdlingResourceReconciler struct { client.Client Log logr.Logger Scheme *runtime.Scheme record.EventRecorder KidlectlImage string }
IdlingResourceReconciler reconciles a IdlingResource object
func (*IdlingResourceReconciler) ReconcileCronStrategies ¶
func (r *IdlingResourceReconciler) ReconcileCronStrategies(ctx context.Context, instance *kidlev1beta1.IdlingResource) (ctrl.Result, error)
func (*IdlingResourceReconciler) ReconcileWithIdler ¶
func (r *IdlingResourceReconciler) ReconcileWithIdler(ctx context.Context, instance *kidlev1beta1.IdlingResource, idler idler.Idler) (ctrl.Result, error)
func (*IdlingResourceReconciler) SetupWithManager ¶
func (r *IdlingResourceReconciler) SetupWithManager(mgr ctrl.Manager) error
type KidleChangedPredicate ¶
func (*KidleChangedPredicate) Update ¶
func (rl *KidleChangedPredicate) Update(e event.UpdateEvent) bool
Click to show internal directories.
Click to hide internal directories.