pool

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2024 License: MIT Imports: 20 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 CreateComparableRunnerTags

func CreateComparableRunnerTags(poolTags []string, osArch providerParams.OSArch, osType providerParams.OSType) ([]params.Tag, error)

func DeletableRunners added in v0.2.2

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 GarmPoolExists

func GarmPoolExists(garmClient garmClient.PoolClient, pool *garmoperatorv1alpha1.Pool) bool

func GetAllRunners

func GetAllRunners(ctx context.Context, pool *garmoperatorv1alpha1.Pool, instanceClient garmClient.InstanceClient) ([]params.Instance, error)

func IdleRunners added in v0.2.2

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

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

func OldIdleRunners added in v0.2.2

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