scale

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Overview

Package scale is the scale of cluster

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewParameters

func NewParameters(ctx context.Context, raw json.RawMessage, params []string) (any, error)

NewParameters parses the parameters.

func Scale

func Scale(ctx context.Context, clientset client.Clientset, conf Config) error

Scale scales a resource in a cluster.

Types

type Config

type Config struct {
	Parameters   any
	Template     string
	Name         string
	Namespace    string
	Replicas     int
	SerialLength int
	DryRun       bool
}

Config is the configuration for scaling a resource.

Jump to

Keyboard shortcuts

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