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 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

View File

@ -32,7 +32,8 @@ spec:
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
API
properties: properties:
apiVersion: apiVersion:
description: |- description: |-
@ -52,7 +53,8 @@ spec:
metadata: metadata:
type: object type: object
spec: spec:
description: HorizontalRunnerAutoscalerSpec defines the desired state of HorizontalRunnerAutoscaler description: HorizontalRunnerAutoscalerSpec defines the desired state
of HorizontalRunnerAutoscaler
properties: properties:
capacityReservations: capacityReservations:
items: items:
@ -83,10 +85,12 @@ spec:
type: object type: object
type: object type: object
maxReplicas: 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 type: integer
metrics: 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: items:
properties: properties:
repositoryNames: repositoryNames:
@ -134,7 +138,8 @@ spec:
type: object type: object
type: array type: array
minReplicas: 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 type: integer
scaleDownDelaySecondsAfterScaleOut: scaleDownDelaySecondsAfterScaleOut:
description: |- description: |-
@ -142,7 +147,8 @@ spec:
Used to prevent flapping (down->up->down->... loop) Used to prevent flapping (down->up->down->... loop)
type: integer type: integer
scaleTargetRef: scaleTargetRef:
description: ScaleTargetRef is the reference to scaled resource like RunnerDeployment description: ScaleTargetRef is the reference to scaled resource like
RunnerDeployment
properties: properties:
kind: kind:
description: Kind is the type of resource being referenced 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. A schedule can optionally be recurring, so that the corresponding override happens every day, week, month, or year.
properties: properties:
endTime: 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 format: date-time
type: string type: string
minReplicas: minReplicas:
@ -265,7 +272,8 @@ spec:
type: string type: string
type: object type: object
startTime: 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 format: date-time
type: string type: string
required: required:
@ -314,4 +322,3 @@ spec:
storage: true storage: true
subresources: subresources:
status: {} status: {}
preserveUnknownFields: false

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -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

View File

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

View File

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

View File

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

View File

@ -32,7 +32,8 @@ spec:
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
API
properties: properties:
apiVersion: apiVersion:
description: |- description: |-
@ -52,7 +53,8 @@ spec:
metadata: metadata:
type: object type: object
spec: spec:
description: HorizontalRunnerAutoscalerSpec defines the desired state of HorizontalRunnerAutoscaler description: HorizontalRunnerAutoscalerSpec defines the desired state
of HorizontalRunnerAutoscaler
properties: properties:
capacityReservations: capacityReservations:
items: items:
@ -83,10 +85,12 @@ spec:
type: object type: object
type: object type: object
maxReplicas: 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 type: integer
metrics: 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: items:
properties: properties:
repositoryNames: repositoryNames:
@ -134,7 +138,8 @@ spec:
type: object type: object
type: array type: array
minReplicas: 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 type: integer
scaleDownDelaySecondsAfterScaleOut: scaleDownDelaySecondsAfterScaleOut:
description: |- description: |-
@ -142,7 +147,8 @@ spec:
Used to prevent flapping (down->up->down->... loop) Used to prevent flapping (down->up->down->... loop)
type: integer type: integer
scaleTargetRef: scaleTargetRef:
description: ScaleTargetRef is the reference to scaled resource like RunnerDeployment description: ScaleTargetRef is the reference to scaled resource like
RunnerDeployment
properties: properties:
kind: kind:
description: Kind is the type of resource being referenced 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. A schedule can optionally be recurring, so that the corresponding override happens every day, week, month, or year.
properties: properties:
endTime: 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 format: date-time
type: string type: string
minReplicas: minReplicas:
@ -265,7 +272,8 @@ spec:
type: string type: string
type: object type: object
startTime: 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 format: date-time
type: string type: string
required: required:
@ -314,4 +322,3 @@ spec:
storage: true storage: true
subresources: subresources:
status: {} status: {}
preserveUnknownFields: false

View File

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

View File

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

View File

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

View File

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