scale

package
v0.10.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2020 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ZeroReplica = int32(0)
	OneReplica  = int32(1)
)

Functions

func ScaleUpWorkload

func ScaleUpWorkload(k8sClient *kubernetes.Clientset, opt backup.Options) error

Types

type Controller

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

func New

func New(k8sClient kubernetes.Interface, opt Options) *Controller

func (*Controller) ScaleDownWorkload

func (c *Controller) ScaleDownWorkload() error

type Options

type Options struct {
	Workload  api.LocalTypedReference
	Namespace string
	Selector  string
}

Jump to

Keyboard shortcuts

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