apicalls

package
v1.34.1 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

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

Variables

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.

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.

Functions

This section is empty.

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

Jump to

Keyboard shortcuts

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