scale

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2019 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// LengthOfInstanceID is the length of instance-id
	LengthOfInstanceID = 5
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	ManageReplicas(
		currentCS, updateCS *appsv1alpha1.CloneSet,
		currentRevision, updateRevision string,
		pods []*v1.Pod, pvcs []*v1.PersistentVolumeClaim,
	) (bool, error)
}

Interface for managing replicas including create and delete pod/pvc.

func NewScaleControl

func NewScaleControl(c client.Client, recorder record.EventRecorder, exp expectations.ScaleExpectations) Interface

NewScaleControl returns a scale control.

Jump to

Keyboard shortcuts

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