Skip to content

Commit 8c25c3b

Browse files
committed
v1beta2: drop deprecated Flavors field from LocalQueueStatus
1 parent 50b8db0 commit 8c25c3b

File tree

18 files changed

+14
-781
lines changed

18 files changed

+14
-781
lines changed

.golangci.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,6 @@ linters:
9090
- linters:
9191
- staticcheck
9292
text: 'SA1019: j.Status.RayClusterStatus.State is deprecated: the State field is replaced by the Conditions field.'
93-
- linters:
94-
- staticcheck
95-
text: 'SA1019: kueue.LocalQueueFlavorStatus is deprecated: LocalQueueFlavorStatus is deprecated and marked for removal in v1beta2.'
96-
- linters:
97-
- staticcheck
98-
text: 'SA1019: stats.Flavors is deprecated: Flavors is deprecated and marked for removal in v1beta2.'
9993
- linters:
10094
- fatcontext
10195
path: ^test/*

apis/kueue/v1beta1/zz_generated.conversion.go

Lines changed: 1 addition & 40 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apis/kueue/v1beta2/localqueue_types.go

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -56,42 +56,6 @@ type LocalQueueSpec struct {
5656
FairSharing *FairSharing `json:"fairSharing,omitempty"`
5757
}
5858

59-
// Deprecated: LocalQueueFlavorStatus is deprecated and marked for removal in v1beta2.
60-
type LocalQueueFlavorStatus struct {
61-
// name of the flavor.
62-
// +required
63-
// +kubebuilder:validation:Required
64-
Name ResourceFlavorReference `json:"name"`
65-
66-
// resources used in the flavor.
67-
// +listType=set
68-
// +kubebuilder:validation:MaxItems=16
69-
// +optional
70-
Resources []corev1.ResourceName `json:"resources,omitempty"`
71-
72-
// nodeLabels are labels that associate the ResourceFlavor with Nodes that
73-
// have the same labels.
74-
// +mapType=atomic
75-
// +kubebuilder:validation:MaxProperties=8
76-
// +optional
77-
NodeLabels map[string]string `json:"nodeLabels,omitempty"`
78-
79-
// nodeTaints are taints that the nodes associated with this ResourceFlavor
80-
// have.
81-
// +listType=atomic
82-
// +kubebuilder:validation:MaxItems=8
83-
// +optional
84-
NodeTaints []corev1.Taint `json:"nodeTaints,omitempty"`
85-
86-
// topology is the topology that associated with this ResourceFlavor.
87-
//
88-
// This is a beta field and requires enabling the TopologyAwareScheduling
89-
// feature gate.
90-
//
91-
// +optional
92-
Topology *TopologyInfo `json:"topology,omitempty"`
93-
}
94-
9559
type TopologyInfo struct {
9660
// name is the name of the topology.
9761
//
@@ -150,14 +114,6 @@ type LocalQueueStatus struct {
150114
// +optional
151115
FlavorsUsage []LocalQueueFlavorUsage `json:"flavorsUsage"`
152116

153-
// flavors lists all currently available ResourceFlavors in specified ClusterQueue.
154-
// +listType=map
155-
// +listMapKey=name
156-
// +kubebuilder:validation:MaxItems=16
157-
// +optional
158-
// Deprecated: Flavors is deprecated and marked for removal in v1beta2.
159-
Flavors []LocalQueueFlavorStatus `json:"flavors,omitempty"`
160-
161117
// fairSharing contains the information about the current status of fair sharing.
162118
// +optional
163119
FairSharing *FairSharingStatus `json:"fairSharing,omitempty"`

apis/kueue/v1beta2/zz_generated.deepcopy.go

Lines changed: 0 additions & 46 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

charts/kueue/templates/crd/kueue.x-k8s.io_localqueues.yaml

Lines changed: 0 additions & 93 deletions
Original file line numberDiff line numberDiff line change
@@ -641,99 +641,6 @@ spec:
641641
required:
642642
- weightedShare
643643
type: object
644-
flavors:
645-
description: |-
646-
flavors lists all currently available ResourceFlavors in specified ClusterQueue.
647-
Deprecated: Flavors is deprecated and marked for removal in v1beta2.
648-
items:
649-
description: 'Deprecated: LocalQueueFlavorStatus is deprecated and marked for removal in v1beta2.'
650-
properties:
651-
name:
652-
description: name of the flavor.
653-
maxLength: 253
654-
pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
655-
type: string
656-
nodeLabels:
657-
additionalProperties:
658-
type: string
659-
description: |-
660-
nodeLabels are labels that associate the ResourceFlavor with Nodes that
661-
have the same labels.
662-
maxProperties: 8
663-
type: object
664-
x-kubernetes-map-type: atomic
665-
nodeTaints:
666-
description: |-
667-
nodeTaints are taints that the nodes associated with this ResourceFlavor
668-
have.
669-
items:
670-
description: |-
671-
The node this Taint is attached to has the "effect" on
672-
any pod that does not tolerate the Taint.
673-
properties:
674-
effect:
675-
description: |-
676-
Required. The effect of the taint on pods
677-
that do not tolerate the taint.
678-
Valid effects are NoSchedule, PreferNoSchedule and NoExecute.
679-
type: string
680-
key:
681-
description: Required. The taint key to be applied to a node.
682-
type: string
683-
timeAdded:
684-
description: TimeAdded represents the time at which the taint was added.
685-
format: date-time
686-
type: string
687-
value:
688-
description: The taint value corresponding to the taint key.
689-
type: string
690-
required:
691-
- effect
692-
- key
693-
type: object
694-
maxItems: 8
695-
type: array
696-
x-kubernetes-list-type: atomic
697-
resources:
698-
description: resources used in the flavor.
699-
items:
700-
description: ResourceName is the name identifying various resources in a ResourceList.
701-
type: string
702-
maxItems: 16
703-
type: array
704-
x-kubernetes-list-type: set
705-
topology:
706-
description: |-
707-
topology is the topology that associated with this ResourceFlavor.
708-
709-
This is a beta field and requires enabling the TopologyAwareScheduling
710-
feature gate.
711-
properties:
712-
levels:
713-
description: levels define the levels of topology.
714-
items:
715-
type: string
716-
maxItems: 16
717-
minItems: 1
718-
type: array
719-
x-kubernetes-list-type: atomic
720-
name:
721-
description: name is the name of the topology.
722-
maxLength: 253
723-
pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
724-
type: string
725-
required:
726-
- levels
727-
- name
728-
type: object
729-
required:
730-
- name
731-
type: object
732-
maxItems: 16
733-
type: array
734-
x-kubernetes-list-map-keys:
735-
- name
736-
x-kubernetes-list-type: map
737644
flavorsReservation:
738645
description: |-
739646
flavorsReservation are the reserved quotas, by flavor currently in use by the

client-go/applyconfiguration/kueue/v1beta2/localqueueflavorstatus.go

Lines changed: 0 additions & 93 deletions
This file was deleted.

0 commit comments

Comments
 (0)