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