Documentation ¶
Overview ¶
Package scaler implements the kubectl.Scaler interface for deploymentConfigs
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDeploymentConfigScaler ¶ added in v1.0.4
NewDeploymentConfigScaler returns a new scaler for deploymentConfigs
func NewScalerClient ¶
NewScalerClient returns a new Scaler client bundling both the OpenShift and Kubernetes clients
Types ¶
type DeploymentConfigScaler ¶
type DeploymentConfigScaler struct {
// contains filtered or unexported fields
}
DeploymentConfigScaler is a wrapper for the kubectl Scaler client
func (*DeploymentConfigScaler) Scale ¶
func (scaler *DeploymentConfigScaler) Scale(namespace, name string, newSize uint, preconditions *kubectl.ScalePrecondition, retry, waitForReplicas *kubectl.RetryParams) error
Scale 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 (*DeploymentConfigScaler) ScaleSimple ¶
func (scaler *DeploymentConfigScaler) ScaleSimple(namespace, name string, preconditions *kubectl.ScalePrecondition, newSize uint) (string, error)
ScaleSimple does a simple one-shot attempt at scaling - not useful on it's own, but a necessary building block for Scale
Click to show internal directories.
Click to hide internal directories.