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 ¶
NewResizerClient returns a new Resizer client bundling both the OpenShift and Kubernetes clients
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
Click to show internal directories.
Click to hide internal directories.