runtime

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StatusTraitor

func StatusTraitor(obj metav1.Object) (apiv1.JobStatus, error)

StatusTraitor traits workload status field from object scheme.

Types

type EmptyScaleImpl added in v0.4.3

type EmptyScaleImpl struct{}

EmptyScaleImpl implements ElasticScaling interface but actually does no-ops.

func (EmptyScaleImpl) CheckpointIfNecessary added in v0.4.3

func (e EmptyScaleImpl) CheckpointIfNecessary(job interface{}, activePods []*corev1.Pod) (completed bool, err error)

func (EmptyScaleImpl) EnableElasticScaling added in v0.4.3

func (e EmptyScaleImpl) EnableElasticScaling(job metav1.Object, runPolicy *v1.RunPolicy) bool

func (EmptyScaleImpl) ScaleIn added in v0.4.3

func (e EmptyScaleImpl) ScaleIn(job interface{}, replicas map[v1.ReplicaType]*v1.ReplicaSpec, activePods []*corev1.Pod, activeServices []*corev1.Service) error

func (EmptyScaleImpl) ScaleOut added in v0.4.3

func (e EmptyScaleImpl) ScaleOut(job interface{}, replicas map[v1.ReplicaType]*v1.ReplicaSpec, activePods []*corev1.Pod, activeServices []*corev1.Service) error

type FailedPodContents added in v0.4.3

type FailedPodContents map[string][]string

FailedPodContents collects failed reasons while with its exit codes of failed pods. key is {reason}-{exit code}, value is a slice of related pods.

func (FailedPodContents) Add added in v0.4.3

func (fc FailedPodContents) Add(pod *v1.Pod, exitCode int32)

func (FailedPodContents) String added in v0.4.3

func (fc FailedPodContents) String() string

type RawExtensionCodec

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

func NewRawExtensionCodec

func NewRawExtensionCodec(scheme *runtime.Scheme) *RawExtensionCodec

func (*RawExtensionCodec) DecodeRaw

func (rc *RawExtensionCodec) DecodeRaw(rawObj runtime.RawExtension, into runtime.Object) error

func (*RawExtensionCodec) EncodeRaw

func (rc *RawExtensionCodec) EncodeRaw(obj runtime.Object) (*runtime.RawExtension, error)

Jump to

Keyboard shortcuts

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