type Scaler …
func NewScaler(scalesGetter scaleclient.ScalesGetter) Scaler { … }
type ScalePrecondition …
type PreconditionError …
func (pe PreconditionError) Error() string { … }
type RetryParams …
func NewRetryParams(interval, timeout time.Duration) *RetryParams { … }
func ScaleCondition(r Scaler, precondition *ScalePrecondition, namespace, name string, count uint, updatedResourceVersion *string, gvr schema.GroupVersionResource, dryRun bool) wait.ConditionFunc { … }
func (precondition *ScalePrecondition) validate(scale *autoscalingv1.Scale) error { … }
type genericScaler …
var _ …
func (s *genericScaler) ScaleSimple(namespace, name string, preconditions *ScalePrecondition, newSize uint, gvr schema.GroupVersionResource, dryRun bool) (updatedResourceVersion string, err error) { … }
func (s *genericScaler) Scale(namespace, resourceName string, newSize uint, preconditions *ScalePrecondition, retry, waitForReplicas *RetryParams, gvr schema.GroupVersionResource, dryRun bool) error { … }
func scaleHasDesiredReplicas(sClient scaleclient.ScalesGetter, gr schema.GroupResource, resourceName string, namespace string, desiredReplicas int32) wait.ConditionFunc { … }
func WaitForScaleHasDesiredReplicas(sClient scaleclient.ScalesGetter, gr schema.GroupResource, resourceName string, namespace string, newSize uint, waitForReplicas *RetryParams) error { … }