Remove deprecated preserveUnknownFields from CRDs (#4135)
This commit is contained in:
parent
fb43abf1f3
commit
a07dce28bb
3
Makefile
3
Makefile
|
|
@ -117,9 +117,6 @@ manifests: manifests-gen-crds chart-crds
|
||||||
|
|
||||||
manifests-gen-crds: controller-gen yq
|
manifests-gen-crds: controller-gen yq
|
||||||
$(CONTROLLER_GEN) $(CRD_OPTIONS) rbac:roleName=manager-role webhook paths="./..." output:crd:artifacts:config=config/crd/bases
|
$(CONTROLLER_GEN) $(CRD_OPTIONS) rbac:roleName=manager-role webhook paths="./..." output:crd:artifacts:config=config/crd/bases
|
||||||
for YAMLFILE in config/crd/bases/actions*.yaml; do \
|
|
||||||
$(YQ) '.spec.preserveUnknownFields = false' --inplace "$$YAMLFILE" ; \
|
|
||||||
done
|
|
||||||
make manifests-gen-crds-fix DELETE_KEY=x-kubernetes-list-type
|
make manifests-gen-crds-fix DELETE_KEY=x-kubernetes-list-type
|
||||||
make manifests-gen-crds-fix DELETE_KEY=x-kubernetes-list-map-keys
|
make manifests-gen-crds-fix DELETE_KEY=x-kubernetes-list-map-keys
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -12,306 +12,313 @@ spec:
|
||||||
listKind: HorizontalRunnerAutoscalerList
|
listKind: HorizontalRunnerAutoscalerList
|
||||||
plural: horizontalrunnerautoscalers
|
plural: horizontalrunnerautoscalers
|
||||||
shortNames:
|
shortNames:
|
||||||
- hra
|
- hra
|
||||||
singular: horizontalrunnerautoscaler
|
singular: horizontalrunnerautoscaler
|
||||||
scope: Namespaced
|
scope: Namespaced
|
||||||
versions:
|
versions:
|
||||||
- additionalPrinterColumns:
|
- additionalPrinterColumns:
|
||||||
- jsonPath: .spec.minReplicas
|
- jsonPath: .spec.minReplicas
|
||||||
name: Min
|
name: Min
|
||||||
type: number
|
type: number
|
||||||
- jsonPath: .spec.maxReplicas
|
- jsonPath: .spec.maxReplicas
|
||||||
name: Max
|
name: Max
|
||||||
type: number
|
type: number
|
||||||
- jsonPath: .status.desiredReplicas
|
- jsonPath: .status.desiredReplicas
|
||||||
name: Desired
|
name: Desired
|
||||||
type: number
|
type: number
|
||||||
- jsonPath: .status.scheduledOverridesSummary
|
- jsonPath: .status.scheduledOverridesSummary
|
||||||
name: Schedule
|
name: Schedule
|
||||||
type: string
|
type: string
|
||||||
name: v1alpha1
|
name: v1alpha1
|
||||||
schema:
|
schema:
|
||||||
openAPIV3Schema:
|
openAPIV3Schema:
|
||||||
description: HorizontalRunnerAutoscaler is the Schema for the horizontalrunnerautoscaler API
|
description: HorizontalRunnerAutoscaler is the Schema for the horizontalrunnerautoscaler
|
||||||
properties:
|
API
|
||||||
apiVersion:
|
properties:
|
||||||
description: |-
|
apiVersion:
|
||||||
APIVersion defines the versioned schema of this representation of an object.
|
description: |-
|
||||||
Servers should convert recognized schemas to the latest internal value, and
|
APIVersion defines the versioned schema of this representation of an object.
|
||||||
may reject unrecognized values.
|
Servers should convert recognized schemas to the latest internal value, and
|
||||||
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
|
may reject unrecognized values.
|
||||||
type: string
|
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
|
||||||
kind:
|
type: string
|
||||||
description: |-
|
kind:
|
||||||
Kind is a string value representing the REST resource this object represents.
|
description: |-
|
||||||
Servers may infer this from the endpoint the client submits requests to.
|
Kind is a string value representing the REST resource this object represents.
|
||||||
Cannot be updated.
|
Servers may infer this from the endpoint the client submits requests to.
|
||||||
In CamelCase.
|
Cannot be updated.
|
||||||
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
|
In CamelCase.
|
||||||
type: string
|
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
|
||||||
metadata:
|
type: string
|
||||||
type: object
|
metadata:
|
||||||
spec:
|
type: object
|
||||||
description: HorizontalRunnerAutoscalerSpec defines the desired state of HorizontalRunnerAutoscaler
|
spec:
|
||||||
properties:
|
description: HorizontalRunnerAutoscalerSpec defines the desired state
|
||||||
capacityReservations:
|
of HorizontalRunnerAutoscaler
|
||||||
items:
|
properties:
|
||||||
description: |-
|
capacityReservations:
|
||||||
CapacityReservation specifies the number of replicas temporarily added
|
items:
|
||||||
to the scale target until ExpirationTime.
|
|
||||||
properties:
|
|
||||||
effectiveTime:
|
|
||||||
format: date-time
|
|
||||||
type: string
|
|
||||||
expirationTime:
|
|
||||||
format: date-time
|
|
||||||
type: string
|
|
||||||
name:
|
|
||||||
type: string
|
|
||||||
replicas:
|
|
||||||
type: integer
|
|
||||||
type: object
|
|
||||||
type: array
|
|
||||||
githubAPICredentialsFrom:
|
|
||||||
properties:
|
|
||||||
secretRef:
|
|
||||||
properties:
|
|
||||||
name:
|
|
||||||
type: string
|
|
||||||
required:
|
|
||||||
- name
|
|
||||||
type: object
|
|
||||||
type: object
|
|
||||||
maxReplicas:
|
|
||||||
description: MaxReplicas 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 on scale-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 on scale-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.
|
|
||||||
It can be TotalNumberOfQueuedAndInProgressWorkflowRuns or PercentageRunnersBusy.
|
|
||||||
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: |-
|
description: |-
|
||||||
ScaleDownDelaySecondsAfterScaleUp is the approximate delay for a scale down followed by a scale up
|
CapacityReservation specifies the number of replicas temporarily added
|
||||||
Used to prevent flapping (down->up->down->... loop)
|
to the scale target until ExpirationTime.
|
||||||
type: integer
|
|
||||||
scaleTargetRef:
|
|
||||||
description: ScaleTargetRef is the reference to scaled resource like RunnerDeployment
|
|
||||||
properties:
|
properties:
|
||||||
kind:
|
effectiveTime:
|
||||||
description: Kind is the type of resource being referenced
|
format: date-time
|
||||||
enum:
|
type: string
|
||||||
- RunnerDeployment
|
expirationTime:
|
||||||
- RunnerSet
|
format: date-time
|
||||||
type: string
|
type: string
|
||||||
name:
|
name:
|
||||||
description: Name is the name of resource being referenced
|
|
||||||
type: string
|
type: string
|
||||||
|
replicas:
|
||||||
|
type: integer
|
||||||
type: object
|
type: object
|
||||||
scaleUpTriggers:
|
type: array
|
||||||
description: |-
|
githubAPICredentialsFrom:
|
||||||
ScaleUpTriggers is an experimental feature to increase the desired replicas by 1
|
properties:
|
||||||
on each webhook requested received by the webhookBasedAutoscaler.
|
secretRef:
|
||||||
|
|
||||||
This feature requires you to also enable and deploy the webhookBasedAutoscaler onto your cluster.
|
|
||||||
|
|
||||||
Note that the added runners remain until the next sync period at least,
|
|
||||||
and they may or may not be used by GitHub Actions depending on the timing.
|
|
||||||
They are intended to be used to gain "resource slack" immediately after you
|
|
||||||
receive a webhook from GitHub, so that you can loosely expect MinReplicas runners to be always available.
|
|
||||||
items:
|
|
||||||
properties:
|
properties:
|
||||||
amount:
|
name:
|
||||||
type: integer
|
|
||||||
duration:
|
|
||||||
type: string
|
|
||||||
githubEvent:
|
|
||||||
properties:
|
|
||||||
checkRun:
|
|
||||||
description: https://docs.github.com/en/actions/reference/events-that-trigger-workflows#check_run
|
|
||||||
properties:
|
|
||||||
names:
|
|
||||||
description: |-
|
|
||||||
Names is a list of GitHub Actions glob patterns.
|
|
||||||
Any check_run event whose name matches one of patterns in the list can trigger autoscaling.
|
|
||||||
Note that check_run name seem to equal to the job name you've defined in your actions workflow yaml file.
|
|
||||||
So it is very likely that you can utilize this to trigger depending on the job.
|
|
||||||
items:
|
|
||||||
type: string
|
|
||||||
type: array
|
|
||||||
repositories:
|
|
||||||
description: |-
|
|
||||||
Repositories is a list of GitHub repositories.
|
|
||||||
Any check_run event whose repository matches one of repositories in the list can trigger autoscaling.
|
|
||||||
items:
|
|
||||||
type: string
|
|
||||||
type: array
|
|
||||||
status:
|
|
||||||
type: string
|
|
||||||
types:
|
|
||||||
description: 'One of: created, rerequested, or completed'
|
|
||||||
items:
|
|
||||||
type: string
|
|
||||||
type: array
|
|
||||||
type: object
|
|
||||||
pullRequest:
|
|
||||||
description: https://docs.github.com/en/actions/reference/events-that-trigger-workflows#pull_request
|
|
||||||
properties:
|
|
||||||
branches:
|
|
||||||
items:
|
|
||||||
type: string
|
|
||||||
type: array
|
|
||||||
types:
|
|
||||||
items:
|
|
||||||
type: string
|
|
||||||
type: array
|
|
||||||
type: object
|
|
||||||
push:
|
|
||||||
description: |-
|
|
||||||
PushSpec is the condition for triggering scale-up on push event
|
|
||||||
Also see https://docs.github.com/en/actions/reference/events-that-trigger-workflows#push
|
|
||||||
type: object
|
|
||||||
workflowJob:
|
|
||||||
description: https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#workflow_job
|
|
||||||
type: object
|
|
||||||
type: object
|
|
||||||
type: object
|
|
||||||
type: array
|
|
||||||
scheduledOverrides:
|
|
||||||
description: |-
|
|
||||||
ScheduledOverrides is the list of ScheduledOverride.
|
|
||||||
It can be used to override a few fields of HorizontalRunnerAutoscalerSpec on schedule.
|
|
||||||
The earlier a scheduled override is, the higher it is prioritized.
|
|
||||||
items:
|
|
||||||
description: |-
|
|
||||||
ScheduledOverride can be used to override a few fields of HorizontalRunnerAutoscalerSpec on schedule.
|
|
||||||
A schedule can optionally be recurring, so that the corresponding override happens every day, week, month, or year.
|
|
||||||
properties:
|
|
||||||
endTime:
|
|
||||||
description: EndTime is the time at which the first override ends.
|
|
||||||
format: date-time
|
|
||||||
type: string
|
|
||||||
minReplicas:
|
|
||||||
description: |-
|
|
||||||
MinReplicas is the number of runners while overriding.
|
|
||||||
If omitted, it doesn't override minReplicas.
|
|
||||||
minimum: 0
|
|
||||||
nullable: true
|
|
||||||
type: integer
|
|
||||||
recurrenceRule:
|
|
||||||
properties:
|
|
||||||
frequency:
|
|
||||||
description: |-
|
|
||||||
Frequency is the name of a predefined interval of each recurrence.
|
|
||||||
The valid values are "Daily", "Weekly", "Monthly", and "Yearly".
|
|
||||||
If empty, the corresponding override happens only once.
|
|
||||||
enum:
|
|
||||||
- Daily
|
|
||||||
- Weekly
|
|
||||||
- Monthly
|
|
||||||
- Yearly
|
|
||||||
type: string
|
|
||||||
untilTime:
|
|
||||||
description: |-
|
|
||||||
UntilTime is the time of the final recurrence.
|
|
||||||
If empty, the schedule recurs forever.
|
|
||||||
format: date-time
|
|
||||||
type: string
|
|
||||||
type: object
|
|
||||||
startTime:
|
|
||||||
description: StartTime is the time at which the first override starts.
|
|
||||||
format: date-time
|
|
||||||
type: string
|
type: string
|
||||||
required:
|
required:
|
||||||
- endTime
|
- name
|
||||||
- startTime
|
|
||||||
type: object
|
type: object
|
||||||
type: array
|
type: object
|
||||||
type: object
|
maxReplicas:
|
||||||
status:
|
description: MaxReplicas is the maximum number of replicas the deployment
|
||||||
properties:
|
is allowed to scale
|
||||||
cacheEntries:
|
type: integer
|
||||||
items:
|
metrics:
|
||||||
properties:
|
description: Metrics is the collection of various metric targets to
|
||||||
expirationTime:
|
calculate desired number of runners
|
||||||
format: date-time
|
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: string
|
||||||
key:
|
type: array
|
||||||
type: string
|
scaleDownAdjustment:
|
||||||
value:
|
description: |-
|
||||||
type: integer
|
ScaleDownAdjustment is the number of runners removed on scale-down.
|
||||||
type: object
|
You can only specify either ScaleDownFactor or ScaleDownAdjustment.
|
||||||
type: array
|
type: integer
|
||||||
desiredReplicas:
|
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 on scale-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.
|
||||||
|
It can be TotalNumberOfQueuedAndInProgressWorkflowRuns or PercentageRunnersBusy.
|
||||||
|
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 is the reference to scaled resource like
|
||||||
|
RunnerDeployment
|
||||||
|
properties:
|
||||||
|
kind:
|
||||||
|
description: Kind is the type of resource being referenced
|
||||||
|
enum:
|
||||||
|
- RunnerDeployment
|
||||||
|
- RunnerSet
|
||||||
|
type: string
|
||||||
|
name:
|
||||||
|
description: Name is the name of resource being referenced
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
scaleUpTriggers:
|
||||||
|
description: |-
|
||||||
|
ScaleUpTriggers is an experimental feature to increase the desired replicas by 1
|
||||||
|
on each webhook requested received by the webhookBasedAutoscaler.
|
||||||
|
|
||||||
|
This feature requires you to also enable and deploy the webhookBasedAutoscaler onto your cluster.
|
||||||
|
|
||||||
|
Note that the added runners remain until the next sync period at least,
|
||||||
|
and they may or may not be used by GitHub Actions depending on the timing.
|
||||||
|
They are intended to be used to gain "resource slack" immediately after you
|
||||||
|
receive a webhook from GitHub, so that you can loosely expect MinReplicas runners to be always available.
|
||||||
|
items:
|
||||||
|
properties:
|
||||||
|
amount:
|
||||||
|
type: integer
|
||||||
|
duration:
|
||||||
|
type: string
|
||||||
|
githubEvent:
|
||||||
|
properties:
|
||||||
|
checkRun:
|
||||||
|
description: https://docs.github.com/en/actions/reference/events-that-trigger-workflows#check_run
|
||||||
|
properties:
|
||||||
|
names:
|
||||||
|
description: |-
|
||||||
|
Names is a list of GitHub Actions glob patterns.
|
||||||
|
Any check_run event whose name matches one of patterns in the list can trigger autoscaling.
|
||||||
|
Note that check_run name seem to equal to the job name you've defined in your actions workflow yaml file.
|
||||||
|
So it is very likely that you can utilize this to trigger depending on the job.
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
type: array
|
||||||
|
repositories:
|
||||||
|
description: |-
|
||||||
|
Repositories is a list of GitHub repositories.
|
||||||
|
Any check_run event whose repository matches one of repositories in the list can trigger autoscaling.
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
type: array
|
||||||
|
status:
|
||||||
|
type: string
|
||||||
|
types:
|
||||||
|
description: 'One of: created, rerequested, or completed'
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
type: array
|
||||||
|
type: object
|
||||||
|
pullRequest:
|
||||||
|
description: https://docs.github.com/en/actions/reference/events-that-trigger-workflows#pull_request
|
||||||
|
properties:
|
||||||
|
branches:
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
type: array
|
||||||
|
types:
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
type: array
|
||||||
|
type: object
|
||||||
|
push:
|
||||||
|
description: |-
|
||||||
|
PushSpec is the condition for triggering scale-up on push event
|
||||||
|
Also see https://docs.github.com/en/actions/reference/events-that-trigger-workflows#push
|
||||||
|
type: object
|
||||||
|
workflowJob:
|
||||||
|
description: https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#workflow_job
|
||||||
|
type: object
|
||||||
|
type: object
|
||||||
|
type: object
|
||||||
|
type: array
|
||||||
|
scheduledOverrides:
|
||||||
|
description: |-
|
||||||
|
ScheduledOverrides is the list of ScheduledOverride.
|
||||||
|
It can be used to override a few fields of HorizontalRunnerAutoscalerSpec on schedule.
|
||||||
|
The earlier a scheduled override is, the higher it is prioritized.
|
||||||
|
items:
|
||||||
description: |-
|
description: |-
|
||||||
DesiredReplicas is the total number of desired, non-terminated and latest pods to be set for the primary RunnerSet
|
ScheduledOverride can be used to override a few fields of HorizontalRunnerAutoscalerSpec on schedule.
|
||||||
This doesn't include outdated pods while upgrading the deployment and replacing the runnerset.
|
A schedule can optionally be recurring, so that the corresponding override happens every day, week, month, or year.
|
||||||
type: integer
|
properties:
|
||||||
lastSuccessfulScaleOutTime:
|
endTime:
|
||||||
format: date-time
|
description: EndTime is the time at which the first override
|
||||||
nullable: true
|
ends.
|
||||||
type: string
|
format: date-time
|
||||||
observedGeneration:
|
type: string
|
||||||
description: |-
|
minReplicas:
|
||||||
ObservedGeneration is the most recent generation observed for the target. It corresponds to e.g.
|
description: |-
|
||||||
RunnerDeployment's generation, which is updated on mutation by the API Server.
|
MinReplicas is the number of runners while overriding.
|
||||||
format: int64
|
If omitted, it doesn't override minReplicas.
|
||||||
type: integer
|
minimum: 0
|
||||||
scheduledOverridesSummary:
|
nullable: true
|
||||||
description: |-
|
type: integer
|
||||||
ScheduledOverridesSummary is the summary of active and upcoming scheduled overrides to be shown in e.g. a column of a `kubectl get hra` output
|
recurrenceRule:
|
||||||
for observability.
|
properties:
|
||||||
type: string
|
frequency:
|
||||||
type: object
|
description: |-
|
||||||
type: object
|
Frequency is the name of a predefined interval of each recurrence.
|
||||||
served: true
|
The valid values are "Daily", "Weekly", "Monthly", and "Yearly".
|
||||||
storage: true
|
If empty, the corresponding override happens only once.
|
||||||
subresources:
|
enum:
|
||||||
status: {}
|
- Daily
|
||||||
preserveUnknownFields: false
|
- Weekly
|
||||||
|
- Monthly
|
||||||
|
- Yearly
|
||||||
|
type: string
|
||||||
|
untilTime:
|
||||||
|
description: |-
|
||||||
|
UntilTime is the time of the final recurrence.
|
||||||
|
If empty, the schedule recurs forever.
|
||||||
|
format: date-time
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
startTime:
|
||||||
|
description: StartTime is the time at which the first override
|
||||||
|
starts.
|
||||||
|
format: date-time
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- endTime
|
||||||
|
- startTime
|
||||||
|
type: object
|
||||||
|
type: array
|
||||||
|
type: object
|
||||||
|
status:
|
||||||
|
properties:
|
||||||
|
cacheEntries:
|
||||||
|
items:
|
||||||
|
properties:
|
||||||
|
expirationTime:
|
||||||
|
format: date-time
|
||||||
|
type: string
|
||||||
|
key:
|
||||||
|
type: string
|
||||||
|
value:
|
||||||
|
type: integer
|
||||||
|
type: object
|
||||||
|
type: array
|
||||||
|
desiredReplicas:
|
||||||
|
description: |-
|
||||||
|
DesiredReplicas is the total number of desired, non-terminated and latest pods to be set for the primary RunnerSet
|
||||||
|
This doesn't include outdated pods while upgrading the deployment and replacing the runnerset.
|
||||||
|
type: integer
|
||||||
|
lastSuccessfulScaleOutTime:
|
||||||
|
format: date-time
|
||||||
|
nullable: true
|
||||||
|
type: string
|
||||||
|
observedGeneration:
|
||||||
|
description: |-
|
||||||
|
ObservedGeneration is the most recent generation observed for the target. It corresponds to e.g.
|
||||||
|
RunnerDeployment's generation, which is updated on mutation by the API Server.
|
||||||
|
format: int64
|
||||||
|
type: integer
|
||||||
|
scheduledOverridesSummary:
|
||||||
|
description: |-
|
||||||
|
ScheduledOverridesSummary is the summary of active and upcoming scheduled overrides to be shown in e.g. a column of a `kubectl get hra` output
|
||||||
|
for observability.
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
type: object
|
||||||
|
served: true
|
||||||
|
storage: true
|
||||||
|
subresources:
|
||||||
|
status: {}
|
||||||
|
|
|
||||||
|
|
@ -9348,4 +9348,3 @@ spec:
|
||||||
storage: true
|
storage: true
|
||||||
subresources:
|
subresources:
|
||||||
status: {}
|
status: {}
|
||||||
preserveUnknownFields: false
|
|
||||||
|
|
|
||||||
|
|
@ -9322,4 +9322,3 @@ spec:
|
||||||
storage: true
|
storage: true
|
||||||
subresources:
|
subresources:
|
||||||
status: {}
|
status: {}
|
||||||
preserveUnknownFields: false
|
|
||||||
|
|
|
||||||
|
|
@ -9328,4 +9328,3 @@ spec:
|
||||||
storage: true
|
storage: true
|
||||||
subresources:
|
subresources:
|
||||||
status: {}
|
status: {}
|
||||||
preserveUnknownFields: false
|
|
||||||
|
|
|
||||||
|
|
@ -8389,4 +8389,3 @@ spec:
|
||||||
storage: true
|
storage: true
|
||||||
subresources:
|
subresources:
|
||||||
status: {}
|
status: {}
|
||||||
preserveUnknownFields: false
|
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
|
|
@ -15571,4 +15571,3 @@ spec:
|
||||||
storage: true
|
storage: true
|
||||||
subresources:
|
subresources:
|
||||||
status: {}
|
status: {}
|
||||||
preserveUnknownFields: false
|
|
||||||
|
|
|
||||||
|
|
@ -7887,4 +7887,3 @@ spec:
|
||||||
storage: true
|
storage: true
|
||||||
subresources:
|
subresources:
|
||||||
status: {}
|
status: {}
|
||||||
preserveUnknownFields: false
|
|
||||||
|
|
|
||||||
|
|
@ -7859,4 +7859,3 @@ spec:
|
||||||
storage: true
|
storage: true
|
||||||
subresources:
|
subresources:
|
||||||
status: {}
|
status: {}
|
||||||
preserveUnknownFields: false
|
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
|
|
@ -15571,4 +15571,3 @@ spec:
|
||||||
storage: true
|
storage: true
|
||||||
subresources:
|
subresources:
|
||||||
status: {}
|
status: {}
|
||||||
preserveUnknownFields: false
|
|
||||||
|
|
|
||||||
|
|
@ -7887,4 +7887,3 @@ spec:
|
||||||
storage: true
|
storage: true
|
||||||
subresources:
|
subresources:
|
||||||
status: {}
|
status: {}
|
||||||
preserveUnknownFields: false
|
|
||||||
|
|
|
||||||
|
|
@ -7859,4 +7859,3 @@ spec:
|
||||||
storage: true
|
storage: true
|
||||||
subresources:
|
subresources:
|
||||||
status: {}
|
status: {}
|
||||||
preserveUnknownFields: false
|
|
||||||
|
|
|
||||||
|
|
@ -12,306 +12,313 @@ spec:
|
||||||
listKind: HorizontalRunnerAutoscalerList
|
listKind: HorizontalRunnerAutoscalerList
|
||||||
plural: horizontalrunnerautoscalers
|
plural: horizontalrunnerautoscalers
|
||||||
shortNames:
|
shortNames:
|
||||||
- hra
|
- hra
|
||||||
singular: horizontalrunnerautoscaler
|
singular: horizontalrunnerautoscaler
|
||||||
scope: Namespaced
|
scope: Namespaced
|
||||||
versions:
|
versions:
|
||||||
- additionalPrinterColumns:
|
- additionalPrinterColumns:
|
||||||
- jsonPath: .spec.minReplicas
|
- jsonPath: .spec.minReplicas
|
||||||
name: Min
|
name: Min
|
||||||
type: number
|
type: number
|
||||||
- jsonPath: .spec.maxReplicas
|
- jsonPath: .spec.maxReplicas
|
||||||
name: Max
|
name: Max
|
||||||
type: number
|
type: number
|
||||||
- jsonPath: .status.desiredReplicas
|
- jsonPath: .status.desiredReplicas
|
||||||
name: Desired
|
name: Desired
|
||||||
type: number
|
type: number
|
||||||
- jsonPath: .status.scheduledOverridesSummary
|
- jsonPath: .status.scheduledOverridesSummary
|
||||||
name: Schedule
|
name: Schedule
|
||||||
type: string
|
type: string
|
||||||
name: v1alpha1
|
name: v1alpha1
|
||||||
schema:
|
schema:
|
||||||
openAPIV3Schema:
|
openAPIV3Schema:
|
||||||
description: HorizontalRunnerAutoscaler is the Schema for the horizontalrunnerautoscaler API
|
description: HorizontalRunnerAutoscaler is the Schema for the horizontalrunnerautoscaler
|
||||||
properties:
|
API
|
||||||
apiVersion:
|
properties:
|
||||||
description: |-
|
apiVersion:
|
||||||
APIVersion defines the versioned schema of this representation of an object.
|
description: |-
|
||||||
Servers should convert recognized schemas to the latest internal value, and
|
APIVersion defines the versioned schema of this representation of an object.
|
||||||
may reject unrecognized values.
|
Servers should convert recognized schemas to the latest internal value, and
|
||||||
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
|
may reject unrecognized values.
|
||||||
type: string
|
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
|
||||||
kind:
|
type: string
|
||||||
description: |-
|
kind:
|
||||||
Kind is a string value representing the REST resource this object represents.
|
description: |-
|
||||||
Servers may infer this from the endpoint the client submits requests to.
|
Kind is a string value representing the REST resource this object represents.
|
||||||
Cannot be updated.
|
Servers may infer this from the endpoint the client submits requests to.
|
||||||
In CamelCase.
|
Cannot be updated.
|
||||||
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
|
In CamelCase.
|
||||||
type: string
|
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
|
||||||
metadata:
|
type: string
|
||||||
type: object
|
metadata:
|
||||||
spec:
|
type: object
|
||||||
description: HorizontalRunnerAutoscalerSpec defines the desired state of HorizontalRunnerAutoscaler
|
spec:
|
||||||
properties:
|
description: HorizontalRunnerAutoscalerSpec defines the desired state
|
||||||
capacityReservations:
|
of HorizontalRunnerAutoscaler
|
||||||
items:
|
properties:
|
||||||
description: |-
|
capacityReservations:
|
||||||
CapacityReservation specifies the number of replicas temporarily added
|
items:
|
||||||
to the scale target until ExpirationTime.
|
|
||||||
properties:
|
|
||||||
effectiveTime:
|
|
||||||
format: date-time
|
|
||||||
type: string
|
|
||||||
expirationTime:
|
|
||||||
format: date-time
|
|
||||||
type: string
|
|
||||||
name:
|
|
||||||
type: string
|
|
||||||
replicas:
|
|
||||||
type: integer
|
|
||||||
type: object
|
|
||||||
type: array
|
|
||||||
githubAPICredentialsFrom:
|
|
||||||
properties:
|
|
||||||
secretRef:
|
|
||||||
properties:
|
|
||||||
name:
|
|
||||||
type: string
|
|
||||||
required:
|
|
||||||
- name
|
|
||||||
type: object
|
|
||||||
type: object
|
|
||||||
maxReplicas:
|
|
||||||
description: MaxReplicas 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 on scale-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 on scale-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.
|
|
||||||
It can be TotalNumberOfQueuedAndInProgressWorkflowRuns or PercentageRunnersBusy.
|
|
||||||
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: |-
|
description: |-
|
||||||
ScaleDownDelaySecondsAfterScaleUp is the approximate delay for a scale down followed by a scale up
|
CapacityReservation specifies the number of replicas temporarily added
|
||||||
Used to prevent flapping (down->up->down->... loop)
|
to the scale target until ExpirationTime.
|
||||||
type: integer
|
|
||||||
scaleTargetRef:
|
|
||||||
description: ScaleTargetRef is the reference to scaled resource like RunnerDeployment
|
|
||||||
properties:
|
properties:
|
||||||
kind:
|
effectiveTime:
|
||||||
description: Kind is the type of resource being referenced
|
format: date-time
|
||||||
enum:
|
type: string
|
||||||
- RunnerDeployment
|
expirationTime:
|
||||||
- RunnerSet
|
format: date-time
|
||||||
type: string
|
type: string
|
||||||
name:
|
name:
|
||||||
description: Name is the name of resource being referenced
|
|
||||||
type: string
|
type: string
|
||||||
|
replicas:
|
||||||
|
type: integer
|
||||||
type: object
|
type: object
|
||||||
scaleUpTriggers:
|
type: array
|
||||||
description: |-
|
githubAPICredentialsFrom:
|
||||||
ScaleUpTriggers is an experimental feature to increase the desired replicas by 1
|
properties:
|
||||||
on each webhook requested received by the webhookBasedAutoscaler.
|
secretRef:
|
||||||
|
|
||||||
This feature requires you to also enable and deploy the webhookBasedAutoscaler onto your cluster.
|
|
||||||
|
|
||||||
Note that the added runners remain until the next sync period at least,
|
|
||||||
and they may or may not be used by GitHub Actions depending on the timing.
|
|
||||||
They are intended to be used to gain "resource slack" immediately after you
|
|
||||||
receive a webhook from GitHub, so that you can loosely expect MinReplicas runners to be always available.
|
|
||||||
items:
|
|
||||||
properties:
|
properties:
|
||||||
amount:
|
name:
|
||||||
type: integer
|
|
||||||
duration:
|
|
||||||
type: string
|
|
||||||
githubEvent:
|
|
||||||
properties:
|
|
||||||
checkRun:
|
|
||||||
description: https://docs.github.com/en/actions/reference/events-that-trigger-workflows#check_run
|
|
||||||
properties:
|
|
||||||
names:
|
|
||||||
description: |-
|
|
||||||
Names is a list of GitHub Actions glob patterns.
|
|
||||||
Any check_run event whose name matches one of patterns in the list can trigger autoscaling.
|
|
||||||
Note that check_run name seem to equal to the job name you've defined in your actions workflow yaml file.
|
|
||||||
So it is very likely that you can utilize this to trigger depending on the job.
|
|
||||||
items:
|
|
||||||
type: string
|
|
||||||
type: array
|
|
||||||
repositories:
|
|
||||||
description: |-
|
|
||||||
Repositories is a list of GitHub repositories.
|
|
||||||
Any check_run event whose repository matches one of repositories in the list can trigger autoscaling.
|
|
||||||
items:
|
|
||||||
type: string
|
|
||||||
type: array
|
|
||||||
status:
|
|
||||||
type: string
|
|
||||||
types:
|
|
||||||
description: 'One of: created, rerequested, or completed'
|
|
||||||
items:
|
|
||||||
type: string
|
|
||||||
type: array
|
|
||||||
type: object
|
|
||||||
pullRequest:
|
|
||||||
description: https://docs.github.com/en/actions/reference/events-that-trigger-workflows#pull_request
|
|
||||||
properties:
|
|
||||||
branches:
|
|
||||||
items:
|
|
||||||
type: string
|
|
||||||
type: array
|
|
||||||
types:
|
|
||||||
items:
|
|
||||||
type: string
|
|
||||||
type: array
|
|
||||||
type: object
|
|
||||||
push:
|
|
||||||
description: |-
|
|
||||||
PushSpec is the condition for triggering scale-up on push event
|
|
||||||
Also see https://docs.github.com/en/actions/reference/events-that-trigger-workflows#push
|
|
||||||
type: object
|
|
||||||
workflowJob:
|
|
||||||
description: https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#workflow_job
|
|
||||||
type: object
|
|
||||||
type: object
|
|
||||||
type: object
|
|
||||||
type: array
|
|
||||||
scheduledOverrides:
|
|
||||||
description: |-
|
|
||||||
ScheduledOverrides is the list of ScheduledOverride.
|
|
||||||
It can be used to override a few fields of HorizontalRunnerAutoscalerSpec on schedule.
|
|
||||||
The earlier a scheduled override is, the higher it is prioritized.
|
|
||||||
items:
|
|
||||||
description: |-
|
|
||||||
ScheduledOverride can be used to override a few fields of HorizontalRunnerAutoscalerSpec on schedule.
|
|
||||||
A schedule can optionally be recurring, so that the corresponding override happens every day, week, month, or year.
|
|
||||||
properties:
|
|
||||||
endTime:
|
|
||||||
description: EndTime is the time at which the first override ends.
|
|
||||||
format: date-time
|
|
||||||
type: string
|
|
||||||
minReplicas:
|
|
||||||
description: |-
|
|
||||||
MinReplicas is the number of runners while overriding.
|
|
||||||
If omitted, it doesn't override minReplicas.
|
|
||||||
minimum: 0
|
|
||||||
nullable: true
|
|
||||||
type: integer
|
|
||||||
recurrenceRule:
|
|
||||||
properties:
|
|
||||||
frequency:
|
|
||||||
description: |-
|
|
||||||
Frequency is the name of a predefined interval of each recurrence.
|
|
||||||
The valid values are "Daily", "Weekly", "Monthly", and "Yearly".
|
|
||||||
If empty, the corresponding override happens only once.
|
|
||||||
enum:
|
|
||||||
- Daily
|
|
||||||
- Weekly
|
|
||||||
- Monthly
|
|
||||||
- Yearly
|
|
||||||
type: string
|
|
||||||
untilTime:
|
|
||||||
description: |-
|
|
||||||
UntilTime is the time of the final recurrence.
|
|
||||||
If empty, the schedule recurs forever.
|
|
||||||
format: date-time
|
|
||||||
type: string
|
|
||||||
type: object
|
|
||||||
startTime:
|
|
||||||
description: StartTime is the time at which the first override starts.
|
|
||||||
format: date-time
|
|
||||||
type: string
|
type: string
|
||||||
required:
|
required:
|
||||||
- endTime
|
- name
|
||||||
- startTime
|
|
||||||
type: object
|
type: object
|
||||||
type: array
|
type: object
|
||||||
type: object
|
maxReplicas:
|
||||||
status:
|
description: MaxReplicas is the maximum number of replicas the deployment
|
||||||
properties:
|
is allowed to scale
|
||||||
cacheEntries:
|
type: integer
|
||||||
items:
|
metrics:
|
||||||
properties:
|
description: Metrics is the collection of various metric targets to
|
||||||
expirationTime:
|
calculate desired number of runners
|
||||||
format: date-time
|
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: string
|
||||||
key:
|
type: array
|
||||||
type: string
|
scaleDownAdjustment:
|
||||||
value:
|
description: |-
|
||||||
type: integer
|
ScaleDownAdjustment is the number of runners removed on scale-down.
|
||||||
type: object
|
You can only specify either ScaleDownFactor or ScaleDownAdjustment.
|
||||||
type: array
|
type: integer
|
||||||
desiredReplicas:
|
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 on scale-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.
|
||||||
|
It can be TotalNumberOfQueuedAndInProgressWorkflowRuns or PercentageRunnersBusy.
|
||||||
|
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 is the reference to scaled resource like
|
||||||
|
RunnerDeployment
|
||||||
|
properties:
|
||||||
|
kind:
|
||||||
|
description: Kind is the type of resource being referenced
|
||||||
|
enum:
|
||||||
|
- RunnerDeployment
|
||||||
|
- RunnerSet
|
||||||
|
type: string
|
||||||
|
name:
|
||||||
|
description: Name is the name of resource being referenced
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
scaleUpTriggers:
|
||||||
|
description: |-
|
||||||
|
ScaleUpTriggers is an experimental feature to increase the desired replicas by 1
|
||||||
|
on each webhook requested received by the webhookBasedAutoscaler.
|
||||||
|
|
||||||
|
This feature requires you to also enable and deploy the webhookBasedAutoscaler onto your cluster.
|
||||||
|
|
||||||
|
Note that the added runners remain until the next sync period at least,
|
||||||
|
and they may or may not be used by GitHub Actions depending on the timing.
|
||||||
|
They are intended to be used to gain "resource slack" immediately after you
|
||||||
|
receive a webhook from GitHub, so that you can loosely expect MinReplicas runners to be always available.
|
||||||
|
items:
|
||||||
|
properties:
|
||||||
|
amount:
|
||||||
|
type: integer
|
||||||
|
duration:
|
||||||
|
type: string
|
||||||
|
githubEvent:
|
||||||
|
properties:
|
||||||
|
checkRun:
|
||||||
|
description: https://docs.github.com/en/actions/reference/events-that-trigger-workflows#check_run
|
||||||
|
properties:
|
||||||
|
names:
|
||||||
|
description: |-
|
||||||
|
Names is a list of GitHub Actions glob patterns.
|
||||||
|
Any check_run event whose name matches one of patterns in the list can trigger autoscaling.
|
||||||
|
Note that check_run name seem to equal to the job name you've defined in your actions workflow yaml file.
|
||||||
|
So it is very likely that you can utilize this to trigger depending on the job.
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
type: array
|
||||||
|
repositories:
|
||||||
|
description: |-
|
||||||
|
Repositories is a list of GitHub repositories.
|
||||||
|
Any check_run event whose repository matches one of repositories in the list can trigger autoscaling.
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
type: array
|
||||||
|
status:
|
||||||
|
type: string
|
||||||
|
types:
|
||||||
|
description: 'One of: created, rerequested, or completed'
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
type: array
|
||||||
|
type: object
|
||||||
|
pullRequest:
|
||||||
|
description: https://docs.github.com/en/actions/reference/events-that-trigger-workflows#pull_request
|
||||||
|
properties:
|
||||||
|
branches:
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
type: array
|
||||||
|
types:
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
type: array
|
||||||
|
type: object
|
||||||
|
push:
|
||||||
|
description: |-
|
||||||
|
PushSpec is the condition for triggering scale-up on push event
|
||||||
|
Also see https://docs.github.com/en/actions/reference/events-that-trigger-workflows#push
|
||||||
|
type: object
|
||||||
|
workflowJob:
|
||||||
|
description: https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#workflow_job
|
||||||
|
type: object
|
||||||
|
type: object
|
||||||
|
type: object
|
||||||
|
type: array
|
||||||
|
scheduledOverrides:
|
||||||
|
description: |-
|
||||||
|
ScheduledOverrides is the list of ScheduledOverride.
|
||||||
|
It can be used to override a few fields of HorizontalRunnerAutoscalerSpec on schedule.
|
||||||
|
The earlier a scheduled override is, the higher it is prioritized.
|
||||||
|
items:
|
||||||
description: |-
|
description: |-
|
||||||
DesiredReplicas is the total number of desired, non-terminated and latest pods to be set for the primary RunnerSet
|
ScheduledOverride can be used to override a few fields of HorizontalRunnerAutoscalerSpec on schedule.
|
||||||
This doesn't include outdated pods while upgrading the deployment and replacing the runnerset.
|
A schedule can optionally be recurring, so that the corresponding override happens every day, week, month, or year.
|
||||||
type: integer
|
properties:
|
||||||
lastSuccessfulScaleOutTime:
|
endTime:
|
||||||
format: date-time
|
description: EndTime is the time at which the first override
|
||||||
nullable: true
|
ends.
|
||||||
type: string
|
format: date-time
|
||||||
observedGeneration:
|
type: string
|
||||||
description: |-
|
minReplicas:
|
||||||
ObservedGeneration is the most recent generation observed for the target. It corresponds to e.g.
|
description: |-
|
||||||
RunnerDeployment's generation, which is updated on mutation by the API Server.
|
MinReplicas is the number of runners while overriding.
|
||||||
format: int64
|
If omitted, it doesn't override minReplicas.
|
||||||
type: integer
|
minimum: 0
|
||||||
scheduledOverridesSummary:
|
nullable: true
|
||||||
description: |-
|
type: integer
|
||||||
ScheduledOverridesSummary is the summary of active and upcoming scheduled overrides to be shown in e.g. a column of a `kubectl get hra` output
|
recurrenceRule:
|
||||||
for observability.
|
properties:
|
||||||
type: string
|
frequency:
|
||||||
type: object
|
description: |-
|
||||||
type: object
|
Frequency is the name of a predefined interval of each recurrence.
|
||||||
served: true
|
The valid values are "Daily", "Weekly", "Monthly", and "Yearly".
|
||||||
storage: true
|
If empty, the corresponding override happens only once.
|
||||||
subresources:
|
enum:
|
||||||
status: {}
|
- Daily
|
||||||
preserveUnknownFields: false
|
- Weekly
|
||||||
|
- Monthly
|
||||||
|
- Yearly
|
||||||
|
type: string
|
||||||
|
untilTime:
|
||||||
|
description: |-
|
||||||
|
UntilTime is the time of the final recurrence.
|
||||||
|
If empty, the schedule recurs forever.
|
||||||
|
format: date-time
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
startTime:
|
||||||
|
description: StartTime is the time at which the first override
|
||||||
|
starts.
|
||||||
|
format: date-time
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- endTime
|
||||||
|
- startTime
|
||||||
|
type: object
|
||||||
|
type: array
|
||||||
|
type: object
|
||||||
|
status:
|
||||||
|
properties:
|
||||||
|
cacheEntries:
|
||||||
|
items:
|
||||||
|
properties:
|
||||||
|
expirationTime:
|
||||||
|
format: date-time
|
||||||
|
type: string
|
||||||
|
key:
|
||||||
|
type: string
|
||||||
|
value:
|
||||||
|
type: integer
|
||||||
|
type: object
|
||||||
|
type: array
|
||||||
|
desiredReplicas:
|
||||||
|
description: |-
|
||||||
|
DesiredReplicas is the total number of desired, non-terminated and latest pods to be set for the primary RunnerSet
|
||||||
|
This doesn't include outdated pods while upgrading the deployment and replacing the runnerset.
|
||||||
|
type: integer
|
||||||
|
lastSuccessfulScaleOutTime:
|
||||||
|
format: date-time
|
||||||
|
nullable: true
|
||||||
|
type: string
|
||||||
|
observedGeneration:
|
||||||
|
description: |-
|
||||||
|
ObservedGeneration is the most recent generation observed for the target. It corresponds to e.g.
|
||||||
|
RunnerDeployment's generation, which is updated on mutation by the API Server.
|
||||||
|
format: int64
|
||||||
|
type: integer
|
||||||
|
scheduledOverridesSummary:
|
||||||
|
description: |-
|
||||||
|
ScheduledOverridesSummary is the summary of active and upcoming scheduled overrides to be shown in e.g. a column of a `kubectl get hra` output
|
||||||
|
for observability.
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
type: object
|
||||||
|
served: true
|
||||||
|
storage: true
|
||||||
|
subresources:
|
||||||
|
status: {}
|
||||||
|
|
|
||||||
|
|
@ -9348,4 +9348,3 @@ spec:
|
||||||
storage: true
|
storage: true
|
||||||
subresources:
|
subresources:
|
||||||
status: {}
|
status: {}
|
||||||
preserveUnknownFields: false
|
|
||||||
|
|
|
||||||
|
|
@ -9322,4 +9322,3 @@ spec:
|
||||||
storage: true
|
storage: true
|
||||||
subresources:
|
subresources:
|
||||||
status: {}
|
status: {}
|
||||||
preserveUnknownFields: false
|
|
||||||
|
|
|
||||||
|
|
@ -9328,4 +9328,3 @@ spec:
|
||||||
storage: true
|
storage: true
|
||||||
subresources:
|
subresources:
|
||||||
status: {}
|
status: {}
|
||||||
preserveUnknownFields: false
|
|
||||||
|
|
|
||||||
|
|
@ -8389,4 +8389,3 @@ spec:
|
||||||
storage: true
|
storage: true
|
||||||
subresources:
|
subresources:
|
||||||
status: {}
|
status: {}
|
||||||
preserveUnknownFields: false
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue