planner

package
v0.0.2-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 20, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Planning indicates that the trigger is in planning state and not active.
	Planning = "Planning"

	// Schedule indicates that the trigger is in active state for podset planner.
	Schedule = "Schedule"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type SchedulePlanReconciler

type SchedulePlanReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
}

SchedulePlanReconciler reconciles a SchedulePlan object.

func (*SchedulePlanReconciler) Reconcile

func (r *SchedulePlanReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile evaluates updates to scheduleplan.

func (*SchedulePlanReconciler) SetupWithManager

func (r *SchedulePlanReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type ScheduleTriggerCallback

type ScheduleTriggerCallback func(ctx context.Context, trigger *plannerv1alpha1.ScheduleTrigger)

ScheduleTriggerCallback is registered and invoked on updates.

type ScheduleTriggerReconciler

type ScheduleTriggerReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
	// contains filtered or unexported fields
}

ScheduleTriggerReconciler reconciles a ScheduleTrigger object.

func (*ScheduleTriggerReconciler) Reconcile

func (r *ScheduleTriggerReconciler) Reconcile(parentCtx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile evaluates the status of schedule trigger and updates internal status if required.

func (*ScheduleTriggerReconciler) RegisterScheduleTrigger

func (r *ScheduleTriggerReconciler) RegisterScheduleTrigger(cb ScheduleTriggerCallback)

RegisterScheduleTrigger registers a trigger callback that is invoked on updates.

func (*ScheduleTriggerReconciler) ScheduleTimerReset

func (r *ScheduleTriggerReconciler) ScheduleTimerReset(trigger *plannerv1alpha1.ScheduleTrigger)

ScheduleTimerReset resets the trigger timer.

func (*ScheduleTriggerReconciler) SetupWithManager

func (r *ScheduleTriggerReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with Manager.

type VersionSpec

type VersionSpec struct {
	Version       string `json:"version,omitempty"`
	VcsURL        string `json:"vcsUrl,omitempty"`
	VcsRef        string `json:"vcsRef,omitempty"`
	VcsCommitDate string `json:"vcsCommitDate,omitempty"`
	VcsDirty      *bool  `json:"vcsDirty,omitempty"`
	GoVersion     string `json:"goVersion,omitempty"`
	OS            string `json:"os,omitempty"`
	Arch          string `json:"arch,omitempty"`
	BuildDate     string `json:"buildDate,omitempty"`
}

VersionSpec defines the version information for the application.

func Version

func Version() *VersionSpec

Version returns the version information for the application.

func (*VersionSpec) String

func (v *VersionSpec) String() string

String returns the version information in string form. nolint:gocognit,cyclop

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL