Documentation ¶
Overview ¶
package scale implements Deployments and Deployment interface for a Kubernetes cluster.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Deployment ¶
type Deployment struct {
// contains filtered or unexported fields
}
Deployment within a Kubernetes cluster, implementing interfaces.Deployment.
func (Deployment) GetReady ¶
func (deployment Deployment) GetReady(ctx context.Context) (int32, error)
func (Deployment) GetRequest ¶
func (deployment Deployment) GetRequest(ctx context.Context) (int32, error)
func (Deployment) SetRequest ¶
func (deployment Deployment) SetRequest(ctx context.Context, count int32) error
type Deployments ¶
type Deployments struct {
apps.DeploymentInterface
}
Deployments within a Kubernetes cluster, implementing interfaces.Deployments.
func InClusterDeployments ¶
func InClusterDeployments(namespace string) (Deployments, error)
InClusterDeployments returns the deployments from the cluster the process is running within.
func NewDeployments ¶
func NewDeployments(clientset *kubernetes.Clientset, namespace string) Deployments
NewDeploymentsFromConfig gets the deployment from a Kubernetes clientset.
func NewDeploymentsFromConfig ¶
func NewDeploymentsFromConfig(config *rest.Config, namespace string) (Deployments, error)
NewDeploymentsFromConfig gets the deployment from a config.
func (Deployments) GetDeployment ¶
func (deployments Deployments) GetDeployment(_ctx context.Context, name string) (interfaces.Deployment, error)
Click to show internal directories.
Click to hide internal directories.