description:HorizontalRunnerAutoscaler is the Schema for the horizontalrunnerautoscaler
API
properties:
apiVersion:
description:'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type:string
kind:
description:'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type:string
metadata:
type:object
spec:
description:HorizontalRunnerAutoscalerSpec defines the desired state
of HorizontalRunnerAutoscaler
properties:
capacityReservations:
items:
description:CapacityReservation specifies the number of replicas
temporarily added to the scale target until ExpirationTime.
properties:
expirationTime:
format:date-time
type:string
name:
type:string
replicas:
type:integer
type:object
type:array
maxReplicas:
description:MinReplicas is the maximum number of replicas the deployment
is allowed to scale
type:integer
metrics:
description:Metrics is the collection of various metric targets to
calculate desired number of runners
items:
properties:
repositoryNames:
description:RepositoryNames is the list of repository names
to be used for calculating the metric. For example, a repository
name is the REPO part of `github.com/USER/REPO`.
items:
type:string
type:array
scaleDownAdjustment:
description:ScaleDownAdjustment is the number of runners removed
onscale-down. You can only specify either ScaleDownFactor
or ScaleDownAdjustment.
type:integer
scaleDownFactor:
description:ScaleDownFactor is the multiplicative factor applied
to the current number of runners used to determine how many
pods should be removed.
type:string
scaleDownThreshold:
description:ScaleDownThreshold is the percentage of busy runners
less than which will trigger the hpa to scale the runners
down.
type:string
scaleUpAdjustment:
description:ScaleUpAdjustment is the number of runners added
onscale-up. You can only specify either ScaleUpFactor or
ScaleUpAdjustment.
type:integer
scaleUpFactor:
description:ScaleUpFactor is the multiplicative factor applied
to the current number of runners used to determine how many
pods should be added.
type:string
scaleUpThreshold:
description:ScaleUpThreshold is the percentage of busy runners
greater than which will trigger the hpa to scale runners up.
type:string
type:
description:Type is the type of metric to be used for autoscaling.
The only supported Type is TotalNumberOfQueuedAndInProgressWorkflowRuns
type:string
type:object
type:array
minReplicas:
description:MinReplicas is the minimum number of replicas the deployment
is allowed to scale
type:integer
scaleDownDelaySecondsAfterScaleOut:
description:ScaleDownDelaySecondsAfterScaleUp is the approximate
delay for a scale down followed by a scale up Used to prevent flapping
(down->up->down->... loop)
type:integer
scaleTargetRef:
description:ScaleTargetRef sis the reference to scaled resource like