Added preserveUnknownFields:false to CRDs

This commit is contained in:
Tristan Keen 2021-09-23 20:29:02 +01:00
parent 1fafd0d139
commit 9f4f5ec951
10 changed files with 37488 additions and 61234 deletions

View File

@ -1,5 +1,3 @@
---
apiVersion: apiextensions.k8s.io/v1 apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition kind: CustomResourceDefinition
metadata: metadata:
@ -14,291 +12,228 @@ 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 description: HorizontalRunnerAutoscaler is the Schema for the horizontalrunnerautoscaler API
API properties:
properties: apiVersion:
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'
description: 'APIVersion defines the versioned schema of this representation type: string
of an object. Servers should convert recognized schemas to the latest kind:
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' 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 type: string
kind: metadata:
description: 'Kind is a string value representing the REST resource this type: object
object represents. Servers may infer this from the endpoint the client spec:
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' description: HorizontalRunnerAutoscalerSpec defines the desired state of HorizontalRunnerAutoscaler
type: string properties:
metadata: capacityReservations:
type: object items:
spec: description: CapacityReservation specifies the number of replicas temporarily added to the scale target until ExpirationTime.
description: HorizontalRunnerAutoscalerSpec defines the desired state properties:
of HorizontalRunnerAutoscaler expirationTime:
properties: format: date-time
capacityReservations: type: string
items: name:
description: CapacityReservation specifies the number of replicas type: string
temporarily added to the scale target until ExpirationTime. 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 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. 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 RunnerDeployment
properties: properties:
expirationTime: kind:
format: date-time description: Kind is the type of resource being referenced
enum:
- RunnerDeployment
- RunnerSet
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
type: array scaleUpTriggers:
maxReplicas: description: "ScaleUpTriggers is an experimental feature to increase the desired replicas by 1 on each webhook requested received by the webhookBasedAutoscaler. \n This feature requires you to also enable and deploy the webhookBasedAutoscaler onto your cluster. \n 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."
description: MinReplicas is the maximum number of replicas the deployment items:
is allowed to scale properties:
type: integer amount:
metrics: type: integer
description: Metrics is the collection of various metric targets to duration:
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: string
type: array githubEvent:
scaleDownAdjustment: properties:
description: ScaleDownAdjustment is the number of runners removed checkRun:
on scale-down. You can only specify either ScaleDownFactor description: https://docs.github.com/en/actions/reference/events-that-trigger-workflows#check_run
or ScaleDownAdjustment. properties:
type: integer names:
scaleDownFactor: 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.
description: ScaleDownFactor is the multiplicative factor applied items:
to the current number of runners used to determine how many type: string
pods should be removed. type: array
type: string repositories:
scaleDownThreshold: description: Repositories is a list of GitHub repositories. Any check_run event whose repository matches one of repositories in the list can trigger autoscaling.
description: ScaleDownThreshold is the percentage of busy runners items:
less than which will trigger the hpa to scale the runners type: string
down. type: array
type: string status:
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.
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
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. \n This feature requires you to also
enable and deploy the webhookBasedAutoscaler onto your cluster.
\n 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: string
type: array types:
repositories: items:
description: Repositories is a list of GitHub repositories. type: string
Any check_run event whose repository matches one of type: array
repositories in the list can trigger autoscaling. type: object
items: pullRequest:
type: string description: https://docs.github.com/en/actions/reference/events-that-trigger-workflows#pull_request
type: array properties:
status: branches:
type: string items:
types: type: string
items: type: array
type: string types:
type: array items:
type: object type: string
pullRequest: type: array
description: https://docs.github.com/en/actions/reference/events-that-trigger-workflows#pull_request type: object
properties: push:
branches: 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
items: type: object
type: string type: object
type: array type: object
types: type: array
items: scheduledOverrides:
type: string 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.
type: array items:
type: object description: ScheduledOverride can be used to override a few fields of HorizontalRunnerAutoscalerSpec on schedule. A schedule can optionally be recurring, so that the correspoding override happens every day, week, month, or year.
push: properties:
description: PushSpec is the condition for triggering scale-up endTime:
on push event Also see https://docs.github.com/en/actions/reference/events-that-trigger-workflows#push description: EndTime is the time at which the first override ends.
type: object format: date-time
type: object type: string
type: object minReplicas:
type: array description: MinReplicas is the number of runners while overriding. If omitted, it doesn't override minReplicas.
scheduledOverrides: minimum: 0
description: ScheduledOverrides is the list of ScheduledOverride. nullable: true
It can be used to override a few fields of HorizontalRunnerAutoscalerSpec type: integer
on schedule. The earlier a scheduled override is, the higher it recurrenceRule:
is prioritized. properties:
items: frequency:
description: ScheduledOverride can be used to override a few fields 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.
of HorizontalRunnerAutoscalerSpec on schedule. A schedule can enum:
optionally be recurring, so that the correspoding override happens - Daily
every day, week, month, or year. - Weekly
properties: - Monthly
endTime: - Yearly
description: EndTime is the time at which the first override type: string
ends. untilTime:
format: date-time description: UntilTime is the time of the final recurrence. If empty, the schedule recurs forever.
type: string format: date-time
minReplicas: type: string
description: MinReplicas is the number of runners while overriding. type: object
If omitted, it doesn't override minReplicas. startTime:
minimum: 0 description: StartTime is the time at which the first override starts.
nullable: true format: date-time
type: integer type: string
recurrenceRule: required:
properties: - endTime
frequency: - startTime
description: Frequency is the name of a predefined interval type: object
of each recurrence. The valid values are "Daily", "Weekly", type: array
"Monthly", and "Yearly". If empty, the corresponding override type: object
happens only once. status:
enum: properties:
- Daily cacheEntries:
- Weekly items:
- Monthly properties:
- Yearly expirationTime:
type: string format: date-time
untilTime: type: string
description: UntilTime is the time of the final recurrence. key:
If empty, the schedule recurs forever. type: string
format: date-time value:
type: string type: integer
type: object type: object
startTime: type: array
description: StartTime is the time at which the first override desiredReplicas:
starts. 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.
format: date-time type: integer
type: string lastSuccessfulScaleOutTime:
required: format: date-time
- endTime nullable: true
- startTime type: string
type: object observedGeneration:
type: array 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.
type: object format: int64
status: type: integer
properties: scheduledOverridesSummary:
cacheEntries: 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.
items: type: string
properties: type: object
expirationTime: type: object
format: date-time served: true
type: string storage: true
key: subresources:
type: string status: {}
value: preserveUnknownFields: false
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: {}
status: status:
acceptedNames: acceptedNames:
kind: "" kind: ""

View File

@ -1,5 +1,3 @@
---
apiVersion: apiextensions.k8s.io/v1 apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition kind: CustomResourceDefinition
metadata: metadata:
@ -14,291 +12,228 @@ 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 description: HorizontalRunnerAutoscaler is the Schema for the horizontalrunnerautoscaler API
API properties:
properties: apiVersion:
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'
description: 'APIVersion defines the versioned schema of this representation type: string
of an object. Servers should convert recognized schemas to the latest kind:
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' 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 type: string
kind: metadata:
description: 'Kind is a string value representing the REST resource this type: object
object represents. Servers may infer this from the endpoint the client spec:
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' description: HorizontalRunnerAutoscalerSpec defines the desired state of HorizontalRunnerAutoscaler
type: string properties:
metadata: capacityReservations:
type: object items:
spec: description: CapacityReservation specifies the number of replicas temporarily added to the scale target until ExpirationTime.
description: HorizontalRunnerAutoscalerSpec defines the desired state properties:
of HorizontalRunnerAutoscaler expirationTime:
properties: format: date-time
capacityReservations: type: string
items: name:
description: CapacityReservation specifies the number of replicas type: string
temporarily added to the scale target until ExpirationTime. 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 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. 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 RunnerDeployment
properties: properties:
expirationTime: kind:
format: date-time description: Kind is the type of resource being referenced
enum:
- RunnerDeployment
- RunnerSet
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
type: array scaleUpTriggers:
maxReplicas: description: "ScaleUpTriggers is an experimental feature to increase the desired replicas by 1 on each webhook requested received by the webhookBasedAutoscaler. \n This feature requires you to also enable and deploy the webhookBasedAutoscaler onto your cluster. \n 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."
description: MinReplicas is the maximum number of replicas the deployment items:
is allowed to scale properties:
type: integer amount:
metrics: type: integer
description: Metrics is the collection of various metric targets to duration:
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: string
type: array githubEvent:
scaleDownAdjustment: properties:
description: ScaleDownAdjustment is the number of runners removed checkRun:
on scale-down. You can only specify either ScaleDownFactor description: https://docs.github.com/en/actions/reference/events-that-trigger-workflows#check_run
or ScaleDownAdjustment. properties:
type: integer names:
scaleDownFactor: 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.
description: ScaleDownFactor is the multiplicative factor applied items:
to the current number of runners used to determine how many type: string
pods should be removed. type: array
type: string repositories:
scaleDownThreshold: description: Repositories is a list of GitHub repositories. Any check_run event whose repository matches one of repositories in the list can trigger autoscaling.
description: ScaleDownThreshold is the percentage of busy runners items:
less than which will trigger the hpa to scale the runners type: string
down. type: array
type: string status:
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.
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
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. \n This feature requires you to also
enable and deploy the webhookBasedAutoscaler onto your cluster.
\n 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: string
type: array types:
repositories: items:
description: Repositories is a list of GitHub repositories. type: string
Any check_run event whose repository matches one of type: array
repositories in the list can trigger autoscaling. type: object
items: pullRequest:
type: string description: https://docs.github.com/en/actions/reference/events-that-trigger-workflows#pull_request
type: array properties:
status: branches:
type: string items:
types: type: string
items: type: array
type: string types:
type: array items:
type: object type: string
pullRequest: type: array
description: https://docs.github.com/en/actions/reference/events-that-trigger-workflows#pull_request type: object
properties: push:
branches: 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
items: type: object
type: string type: object
type: array type: object
types: type: array
items: scheduledOverrides:
type: string 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.
type: array items:
type: object description: ScheduledOverride can be used to override a few fields of HorizontalRunnerAutoscalerSpec on schedule. A schedule can optionally be recurring, so that the correspoding override happens every day, week, month, or year.
push: properties:
description: PushSpec is the condition for triggering scale-up endTime:
on push event Also see https://docs.github.com/en/actions/reference/events-that-trigger-workflows#push description: EndTime is the time at which the first override ends.
type: object format: date-time
type: object type: string
type: object minReplicas:
type: array description: MinReplicas is the number of runners while overriding. If omitted, it doesn't override minReplicas.
scheduledOverrides: minimum: 0
description: ScheduledOverrides is the list of ScheduledOverride. nullable: true
It can be used to override a few fields of HorizontalRunnerAutoscalerSpec type: integer
on schedule. The earlier a scheduled override is, the higher it recurrenceRule:
is prioritized. properties:
items: frequency:
description: ScheduledOverride can be used to override a few fields 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.
of HorizontalRunnerAutoscalerSpec on schedule. A schedule can enum:
optionally be recurring, so that the correspoding override happens - Daily
every day, week, month, or year. - Weekly
properties: - Monthly
endTime: - Yearly
description: EndTime is the time at which the first override type: string
ends. untilTime:
format: date-time description: UntilTime is the time of the final recurrence. If empty, the schedule recurs forever.
type: string format: date-time
minReplicas: type: string
description: MinReplicas is the number of runners while overriding. type: object
If omitted, it doesn't override minReplicas. startTime:
minimum: 0 description: StartTime is the time at which the first override starts.
nullable: true format: date-time
type: integer type: string
recurrenceRule: required:
properties: - endTime
frequency: - startTime
description: Frequency is the name of a predefined interval type: object
of each recurrence. The valid values are "Daily", "Weekly", type: array
"Monthly", and "Yearly". If empty, the corresponding override type: object
happens only once. status:
enum: properties:
- Daily cacheEntries:
- Weekly items:
- Monthly properties:
- Yearly expirationTime:
type: string format: date-time
untilTime: type: string
description: UntilTime is the time of the final recurrence. key:
If empty, the schedule recurs forever. type: string
format: date-time value:
type: string type: integer
type: object type: object
startTime: type: array
description: StartTime is the time at which the first override desiredReplicas:
starts. 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.
format: date-time type: integer
type: string lastSuccessfulScaleOutTime:
required: format: date-time
- endTime nullable: true
- startTime type: string
type: object observedGeneration:
type: array 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.
type: object format: int64
status: type: integer
properties: scheduledOverridesSummary:
cacheEntries: 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.
items: type: string
properties: type: object
expirationTime: type: object
format: date-time served: true
type: string storage: true
key: subresources:
type: string status: {}
value: preserveUnknownFields: false
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: {}
status: status:
acceptedNames: acceptedNames:
kind: "" kind: ""

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff