Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .changes/unreleased/changed-20261116-211258.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
kind: Changed
body: |-
Key PodGroup scheduling conditions by node pool for independent server-side apply ownership
10 changes: 9 additions & 1 deletion config/crd/scheduling.run.ai_podgroups.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,8 @@ spec:
type: object
type: object
schedulingConditions:
description: The scheduling conditions of PodGroup.
description: The scheduling conditions of PodGroup, keyed by node
pool.
items:
description: SchedulingCondition contains details for the current
scheduling state of this pod group.
Expand Down Expand Up @@ -409,8 +410,14 @@ spec:
type:
description: Type is the type of the scheduling condition
type: string
required:
- nodePool
type: object
x-kubernetes-map-type: atomic
type: array
x-kubernetes-list-map-keys:
- nodePool
x-kubernetes-list-type: map
schedulingState:
description: |-
SchedulingState is the scheduler's authoritative view of this pod group. Read-only for
Expand All @@ -425,6 +432,7 @@ spec:
type: string
type: array
type: object
x-kubernetes-map-type: atomic
type: object
type: object
served: true
Expand Down
8 changes: 6 additions & 2 deletions scheduling/v2alpha2/podgroup_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,9 @@ type PodGroupStatus struct {
// +optional
Conditions []PodGroupCondition `json:"conditions,omitempty" protobuf:"bytes,2,opt,name=conditions"`

// The scheduling conditions of PodGroup.
// The scheduling conditions of PodGroup, keyed by node pool.
// +listType=map
// +listMapKey=nodePool
// +optional
SchedulingConditions []SchedulingCondition `json:"schedulingConditions,omitempty" protobuf:"bytes,7,rep,name=schedulingConditions"`

Expand All @@ -204,6 +206,7 @@ type PodGroupStatus struct {

// PodGroupSchedulingState carries the scheduler's authoritative accounting for this pod group.
// It is populated exclusively by the scheduler; all other controllers MUST treat it as read-only.
// +structType=atomic
type PodGroupSchedulingState struct {
// CorePods names the allocated pods the scheduler protects from preemption and reclaim (the
// "core", i.e. the job's minimal satisfying set). Written only for semi-preemptible pod groups,
Expand Down Expand Up @@ -257,12 +260,13 @@ type PodGroupCondition struct {
}

// SchedulingCondition contains details for the current scheduling state of this pod group.
// +structType=atomic
type SchedulingCondition struct {
// Type is the type of the scheduling condition
Type SchedulingConditionType `json:"type,omitempty" protobuf:"bytes,1,opt,name=type"`

// The Node Pool name on witch the scheduling condition happened
NodePool string `json:"nodePool,omitempty" protobuf:"bytes,2,opt,name=nodePool"`
NodePool string `json:"nodePool" protobuf:"bytes,2,opt,name=nodePool"`

// Unique, one-word, CamelCase reason for the phase's last transition.
// Deprecated: use Reasons instead
Expand Down