interpretabity

package
v0.0.0-...-dcfb068 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PatchPodGroupCondition

func PatchPodGroupCondition(crdCli pgclientset.Interface, old, new *schedv1alpha1.PodGroup) (err error)

PatchPodGroupCondition calculates the delta bytes change from <old> to <new>, and then submit a request to API server to patch the podgroup changes.

func UpdatePreSchedulingCondition

func UpdatePreSchedulingCondition(pgcli pgclientset.Interface, pg *schedv1alpha1.PodGroup, cond schedv1alpha1.PodGroupCondition) (err error)

UpdatePreSchedulingCondition updates first PodGroupCondition, which Phase is "PreScheduling"

Types

type SchedulingFailureCategory

type SchedulingFailureCategory string

SchedulingFailureCategory describe the reason for unschedulable Pod.

const (
	// UnexpectedError happened during the workflow of Scheduler or Binder.
	UnexpectedError SchedulingFailureCategory = "UnexpectedError"
	// InsufficientResourcesError implies Scheduler doesn't find a schedulable node because of insufficient resources.
	InsufficientResourcesError SchedulingFailureCategory = "InsufficientResources"
)

type SchedulingPhase

type SchedulingPhase string

SchedulingPhase describe the scheduling phase.

const (
	Scheduling SchedulingPhase = "Scheduling"
)

type UnitSchedulingDetails

type UnitSchedulingDetails struct {
	// contains filtered or unexported fields
}

UnitSchedulingDetails interpret the scheduling category for podgroup.

func NewUnitSchedulingDetails

func NewUnitSchedulingDetails(phase SchedulingPhase, allPods int) *UnitSchedulingDetails

NewUnitSchedulingDetails returns a interpreter instance.

func (*UnitSchedulingDetails) AddPodsError

func (details *UnitSchedulingDetails) AddPodsError(err error, podKey ...string)

func (*UnitSchedulingDetails) AddSuccessfulPods

func (details *UnitSchedulingDetails) AddSuccessfulPods(podKey ...string)

func (*UnitSchedulingDetails) FailureMessage

func (details *UnitSchedulingDetails) FailureMessage() string

FailureMessage returns the detailed failure message about the scheduling. If all Pods are successful, returns "".

func (*UnitSchedulingDetails) GetErrors

func (details *UnitSchedulingDetails) GetErrors() []error

func (*UnitSchedulingDetails) GetPodError

func (details *UnitSchedulingDetails) GetPodError(podKey string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL