resizer

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: May 28, 2015 License: Apache-2.0 Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package resizer implements the kubectl.Resizer interface for deploymentConfigs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewResizerClient

func NewResizerClient(osc client.Interface, kc kclient.Interface) kubectl.ResizerClient

NewResizerClient returns a new Resizer client bundling both the OpenShift and Kubernetes clients

func ResizerFor

func ResizerFor(kind string, osc client.Interface, kc kclient.Interface) (kubectl.Resizer, error)

ResizerFor returns the appropriate Resizer client depending on the provided kind of resource (Replication controllers and deploymentConfigs supported)

Types

type DeploymentConfigResizer

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

DeploymentConfigResizer is a wrapper for the kubectl Resizer client

func (*DeploymentConfigResizer) Resize

func (resizer *DeploymentConfigResizer) Resize(namespace, name string, newSize uint, preconditions *kubectl.ResizePrecondition, retry, waitForReplicas *kubectl.RetryParams) error

Resize updates a replication controller created by the DeploymentConfig with the provided namespace/name, to a new size, with optional precondition check (if preconditions is not nil),optional retries (if retry

is not nil), and then optionally waits for it's replica count to reach the new value (if wait is not nil).

func (*DeploymentConfigResizer) ResizeSimple

func (resizer *DeploymentConfigResizer) ResizeSimple(namespace, name string, preconditions *kubectl.ResizePrecondition, newSize uint) (string, error)

ResizeSimple does a simple one-shot attempt at resizing - not useful on it's own, but a necessary building block for Resize

Jump to

Keyboard shortcuts

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