kubernetesk8s.io/kubernetes/pkg/scheduler/framework/api_calls Index | Files

package apicalls

import "k8s.io/kubernetes/pkg/scheduler/framework/api_calls"

Index

Constants

const (
	PodStatusPatch fwk.APICallType = "pod_status_patch"
	PodBinding     fwk.APICallType = "pod_binding"
)

Variables

var Implementations = framework.APICallImplementations[*PodStatusPatchCall, *PodBindingCall]{
	PodStatusPatch: NewPodStatusPatchCall,
	PodBinding:     NewPodBindingCall,
}

Implementation is a built-in mapping types to calls' constructors. It's used to construct calls' objects in the scheduler framework and for easier replacement of those. This mapping can be replaced by the out-of-tree plugin in its init() function, if needed.

var Relevances = fwk.APICallRelevances{
	PodStatusPatch: 1,
	PodBinding:     2,
}

Relevances is a built-in mapping types to relevances. Types of the same relevance should only be defined for different object types. Misconfiguration of this map can lead to unexpected system bahavior, so any change has to be well tested and done with care. This mapping can be replaced by the out-of-tree plugin in its init() function, if needed.

Types

type PodBindingCall

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

PodBindingCall is used to bind the pod using the binding details.

func NewPodBindingCall

func NewPodBindingCall(binding *v1.Binding) *PodBindingCall

func (*PodBindingCall) CallType

func (pbc *PodBindingCall) CallType() fwk.APICallType

func (*PodBindingCall) Execute

func (pbc *PodBindingCall) Execute(ctx context.Context, client clientset.Interface) error

func (*PodBindingCall) IsNoOp

func (pbc *PodBindingCall) IsNoOp() bool

func (*PodBindingCall) Merge

func (pbc *PodBindingCall) Merge(oldCall fwk.APICall) error

func (*PodBindingCall) Sync

func (pbc *PodBindingCall) Sync(obj metav1.Object) (metav1.Object, error)

func (*PodBindingCall) UID

func (pbc *PodBindingCall) UID() types.UID

type PodStatusPatchCall

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

PodStatusPatchCall is used to patch the pod status.

func NewPodStatusPatchCall

func NewPodStatusPatchCall(pod *v1.Pod, condition *v1.PodCondition, nominatingInfo *framework.NominatingInfo) *PodStatusPatchCall

func (*PodStatusPatchCall) CallType

func (psuc *PodStatusPatchCall) CallType() fwk.APICallType

func (*PodStatusPatchCall) Execute

func (psuc *PodStatusPatchCall) Execute(ctx context.Context, client clientset.Interface) error

func (*PodStatusPatchCall) IsNoOp

func (psuc *PodStatusPatchCall) IsNoOp() bool

func (*PodStatusPatchCall) Merge

func (psuc *PodStatusPatchCall) Merge(oldCall fwk.APICall) error

func (*PodStatusPatchCall) Sync

func (psuc *PodStatusPatchCall) Sync(obj metav1.Object) (metav1.Object, error)

func (*PodStatusPatchCall) UID

func (psuc *PodStatusPatchCall) UID() types.UID

Source Files

api_calls.go pod_binding.go pod_status_patch.go

Version
v1.35.0-alpha.0
Published
Aug 2, 2025
Platform
linux/amd64
Imports
12 packages
Last checked
41 seconds ago

Tools for package owners.