Remove deprecated preserveUnknownFields from CRDs (#4135)

This commit is contained in:
Alex Hatzenbuhler 2025-07-24 01:47:34 -05:00 committed by GitHub
parent fb43abf1f3
commit a07dce28bb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
19 changed files with 16898 additions and 16117 deletions

View File

@ -117,9 +117,6 @@ manifests: manifests-gen-crds chart-crds
manifests-gen-crds: controller-gen yq
$(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-map-keys

View File

@ -32,7 +32,8 @@ spec:
name: v1alpha1
schema:
openAPIV3Schema:
description: HorizontalRunnerAutoscaler is the Schema for the horizontalrunnerautoscaler API
description: HorizontalRunnerAutoscaler is the Schema for the horizontalrunnerautoscaler
API
properties:
apiVersion:
description: |-
@ -52,7 +53,8 @@ spec:
metadata:
type: object
spec:
description: HorizontalRunnerAutoscalerSpec defines the desired state of HorizontalRunnerAutoscaler
description: HorizontalRunnerAutoscalerSpec defines the desired state
of HorizontalRunnerAutoscaler
properties:
capacityReservations:
items:
@ -83,10 +85,12 @@ spec:
type: object
type: object
maxReplicas:
description: MaxReplicas is the maximum number of replicas the deployment is allowed to scale
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
description: Metrics is the collection of various metric targets to
calculate desired number of runners
items:
properties:
repositoryNames:
@ -134,7 +138,8 @@ spec:
type: object
type: array
minReplicas:
description: MinReplicas is the minimum number of replicas the deployment is allowed to scale
description: MinReplicas is the minimum number of replicas the deployment
is allowed to scale
type: integer
scaleDownDelaySecondsAfterScaleOut:
description: |-
@ -142,7 +147,8 @@ spec:
Used to prevent flapping (down->up->down->... loop)
type: integer
scaleTargetRef:
description: ScaleTargetRef is the reference to scaled resource like RunnerDeployment
description: ScaleTargetRef is the reference to scaled resource like
RunnerDeployment
properties:
kind:
description: Kind is the type of resource being referenced
@ -234,7 +240,8 @@ spec:
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.
description: EndTime is the time at which the first override
ends.
format: date-time
type: string
minReplicas:
@ -265,7 +272,8 @@ spec:
type: string
type: object
startTime:
description: StartTime is the time at which the first override starts.
description: StartTime is the time at which the first override
starts.
format: date-time
type: string
required:
@ -314,4 +322,3 @@ spec:
storage: true
subresources:
status: {}
preserveUnknownFields: false

View File

@ -9348,4 +9348,3 @@ spec:
storage: true
subresources:
status: {}
preserveUnknownFields: false

View File

@ -9322,4 +9322,3 @@ spec:
storage: true
subresources:
status: {}
preserveUnknownFields: false

View File

@ -9328,4 +9328,3 @@ spec:
storage: true
subresources:
status: {}
preserveUnknownFields: false

View File

@ -8389,4 +8389,3 @@ spec:
storage: true
subresources:
status: {}
preserveUnknownFields: false

View File

@ -15571,4 +15571,3 @@ spec:
storage: true
subresources:
status: {}
preserveUnknownFields: false

View File

@ -7887,4 +7887,3 @@ spec:
storage: true
subresources:
status: {}
preserveUnknownFields: false

View File

@ -7859,4 +7859,3 @@ spec:
storage: true
subresources:
status: {}
preserveUnknownFields: false

File diff suppressed because it is too large Load Diff

View File

@ -15571,4 +15571,3 @@ spec:
storage: true
subresources:
status: {}
preserveUnknownFields: false

View File

@ -7887,4 +7887,3 @@ spec:
storage: true
subresources:
status: {}
preserveUnknownFields: false

View File

@ -7859,4 +7859,3 @@ spec:
storage: true
subresources:
status: {}
preserveUnknownFields: false

View File

@ -32,7 +32,8 @@ spec:
name: v1alpha1
schema:
openAPIV3Schema:
description: HorizontalRunnerAutoscaler is the Schema for the horizontalrunnerautoscaler API
description: HorizontalRunnerAutoscaler is the Schema for the horizontalrunnerautoscaler
API
properties:
apiVersion:
description: |-
@ -52,7 +53,8 @@ spec:
metadata:
type: object
spec:
description: HorizontalRunnerAutoscalerSpec defines the desired state of HorizontalRunnerAutoscaler
description: HorizontalRunnerAutoscalerSpec defines the desired state
of HorizontalRunnerAutoscaler
properties:
capacityReservations:
items:
@ -83,10 +85,12 @@ spec:
type: object
type: object
maxReplicas:
description: MaxReplicas is the maximum number of replicas the deployment is allowed to scale
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
description: Metrics is the collection of various metric targets to
calculate desired number of runners
items:
properties:
repositoryNames:
@ -134,7 +138,8 @@ spec:
type: object
type: array
minReplicas:
description: MinReplicas is the minimum number of replicas the deployment is allowed to scale
description: MinReplicas is the minimum number of replicas the deployment
is allowed to scale
type: integer
scaleDownDelaySecondsAfterScaleOut:
description: |-
@ -142,7 +147,8 @@ spec:
Used to prevent flapping (down->up->down->... loop)
type: integer
scaleTargetRef:
description: ScaleTargetRef is the reference to scaled resource like RunnerDeployment
description: ScaleTargetRef is the reference to scaled resource like
RunnerDeployment
properties:
kind:
description: Kind is the type of resource being referenced
@ -234,7 +240,8 @@ spec:
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.
description: EndTime is the time at which the first override
ends.
format: date-time
type: string
minReplicas:
@ -265,7 +272,8 @@ spec:
type: string
type: object
startTime:
description: StartTime is the time at which the first override starts.
description: StartTime is the time at which the first override
starts.
format: date-time
type: string
required:
@ -314,4 +322,3 @@ spec:
storage: true
subresources:
status: {}
preserveUnknownFields: false

View File

@ -9348,4 +9348,3 @@ spec:
storage: true
subresources:
status: {}
preserveUnknownFields: false

View File

@ -9322,4 +9322,3 @@ spec:
storage: true
subresources:
status: {}
preserveUnknownFields: false

View File

@ -9328,4 +9328,3 @@ spec:
storage: true
subresources:
status: {}
preserveUnknownFields: false

View File

@ -8389,4 +8389,3 @@ spec:
storage: true
subresources:
status: {}
preserveUnknownFields: false