Documentation
¶
Index ¶
- func StatusTraitor(obj metav1.Object) (apiv1.JobStatus, error)
- type EmptyScaleImpl
- func (e EmptyScaleImpl) CheckpointIfNecessary(job interface{}, activePods []*corev1.Pod) (completed bool, err error)
- func (e EmptyScaleImpl) EnableElasticScaling(job metav1.Object, runPolicy *v1.RunPolicy) bool
- func (e EmptyScaleImpl) ScaleIn(job interface{}, replicas map[v1.ReplicaType]*v1.ReplicaSpec, ...) error
- func (e EmptyScaleImpl) ScaleOut(job interface{}, replicas map[v1.ReplicaType]*v1.ReplicaSpec, ...) error
- type FailedPodContents
- type RawExtensionCodec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 (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
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)
Click to show internal directories.
Click to hide internal directories.