runners

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AlignIdleRunners

func AlignIdleRunners(minIdleRunners int, idleRunners []params.Instance) []params.Instance

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

func DeletableRunners(ctx context.Context, instances []params.Instance) []params.Instance

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

func IdleRunners(ctx context.Context, instances []params.Instance) []params.Instance

IdleRunners returns a list of runners that are in github state idle

func MatchesName

func MatchesName(name string) filter.Predicate[params.Instance]

func OldIdleRunners

func OldIdleRunners(minRunnerAge time.Duration, instances []params.Instance) []params.Instance

OldIdleRunners returns a list of runners that are older than minRunnerAge

Types

This section is empty.

Jump to

Keyboard shortcuts

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