scale

package module
v0.1.6-alpha.6 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2024 License: MIT Imports: 7 Imported by: 1

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)

Jump to

Keyboard shortcuts

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