Skip to content

Commit

Permalink
feat: add podgroup uninqueueable condition type and un-enqueueable re…
Browse files Browse the repository at this point in the history
…ason

Signed-off-by: lowang-bh <[email protected]>
  • Loading branch information
lowang-bh committed Aug 12, 2023
1 parent 408ba43 commit 904c042
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pkg/apis/scheduling/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ const (
type PodGroupConditionType string

const (
// PodGroupUnInqueueable is Uninqueueable event type
PodGroupUnInqueueable PodGroupConditionType = "Uninqueueable"

// PodGroupUnschedulableType is Unschedulable event type
PodGroupUnschedulableType PodGroupConditionType = "Unschedulable"

Expand Down Expand Up @@ -111,6 +114,12 @@ const (

// NotEnoughPodsReason is probed if there're not enough tasks compared to `spec.minMember`
NotEnoughPodsReason string = "NotEnoughTasks"

// NotEnoughPodsOfTaskReason is probed if there're not enough pods of task compared to `spec.minTaskMember`
NotEnoughPodsOfTaskReason string = "NotEnoughPodsOfTask"

// NotInqueueableReason if probed if job is rejected to enqueue
NotInqueueableReason string = "NotInqueueable"
)

// QueueEvent represent the phase of queue.
Expand Down
6 changes: 6 additions & 0 deletions pkg/apis/scheduling/v1beta1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ const (
type PodGroupConditionType string

const (
// PodGroupUnInqueueable is Uninqueueable event type
PodGroupUnInqueueable PodGroupConditionType = "Uninqueueable"

// PodGroupUnschedulableType is Unschedulable event type
PodGroupUnschedulableType PodGroupConditionType = "Unschedulable"

Expand Down Expand Up @@ -117,6 +120,9 @@ const (

// NotEnoughPodsOfTaskReason is probed if there're not enough pods of task compared to `spec.minTaskMember`
NotEnoughPodsOfTaskReason string = "NotEnoughPodsOfTask"

// NotInqueueableReason if probed if job is rejected to enqueue
NotInqueueableReason string = "NotInqueueable"
)

// QueueEvent represent the phase of queue.
Expand Down

0 comments on commit 904c042

Please sign in to comment.