Documentation ¶
Index ¶
- func AlignIdleRunners(minIdleRunners int, idleRunners []params.Instance) []params.Instance
- func DeletableRunners(ctx context.Context, instances []params.Instance) []params.Instance
- func GetRunnersByPoolID(ctx context.Context, pool *garmoperatorv1alpha1.Pool, ...) ([]params.Instance, error)
- func IdleRunners(ctx context.Context, instances []params.Instance) []params.Instance
- func MatchesName(name string) filter.Predicate[params.Instance]
- func OldIdleRunners(minRunnerAge time.Duration, instances []params.Instance) []params.Instance
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AlignIdleRunners ¶
AlignIdleRunners scales down the pool to the desired state of minIdleRunners. It will delete as many runners as needed to reach the desired state.
func DeletableRunners ¶
DeletableRunners returns a list of runners that are in a deletable state from a garm perspective
func GetRunnersByPoolID ¶
func GetRunnersByPoolID(ctx context.Context, pool *garmoperatorv1alpha1.Pool, instanceClient garmClient.InstanceClient) ([]params.Instance, error)
func IdleRunners ¶
IdleRunners returns a list of runners that are in github state idle
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.