kubescaler

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KubeScaler

type KubeScaler struct {
	// contains filtered or unexported fields
}

func NewKubeScaler

func NewKubeScaler(namespace string) (*KubeScaler, error)

func NewKubeScalerOrDie

func NewKubeScalerOrDie(namespace string) *KubeScaler

func NewKubeScalerWithClient

func NewKubeScalerWithClient(namespace string, client kubernetes.Interface) *KubeScaler

func (*KubeScaler) ScaleDeployment

func (a *KubeScaler) ScaleDeployment(ctx context.Context, deploymentName string, replicas int32) error

func (*KubeScaler) ScaleStatefulSet

func (a *KubeScaler) ScaleStatefulSet(ctx context.Context, statefulSetName string, replicas int32) error

Jump to

Keyboard shortcuts

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