cluster

package
v0.0.0-...-2caf503 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package cluster implements the 'scale cluster' command.

Index

Constants

This section is empty.

Variables

View Source
var (
	// Command performs the "delete cluster" function
	Command = &cobra.Command{
		Use:   "cluster",
		Short: "Scale cluster",
		Long: `Increase or reduce the number of worker nodes in a cluster.

Caution:

When reducing the number of nodes, the selection of the node(s) to be removed
is non-deterministic. Workloads on the worker nodes to be removed will be
terminated, data stored on the worker nodes will be lost. Make sure to remove
only as many nodes as your deployment architecture can handle in a resilient
way.

Examples:

  gsctl scale cluster c7t2o --workers-min 12 --workers-max 16

  gsctl scale cluster c7t2o --workers-min 3 --workers-max 3

  gsctl scale cluster c7t2o --num-workers 3

  gsctl scale cluster "Cluster name" --num-workers 3
`,

		PreRun: printValidation,

		Run: printResult,
	}
)

Functions

This section is empty.

Types

type Arguments

type Arguments struct {
	APIEndpoint         string
	AuthToken           string
	ClusterNameOrID     string
	NumWorkersDesired   int
	OppressConfirmation bool
	Scheme              string
	UserProvidedToken   string
	Verbose             bool
	WorkersMax          int64
	WorkersMaxSet       bool
	WorkersMin          int64
	WorkersMinSet       bool
	Workers             int
	WorkersSet          bool
}

Arguments contains all arguments that influence the business function.

type Result

type Result struct {
	NumWorkersBefore int
	ScalingMinBefore int
	ScalingMinAfter  int
	ScalingMaxBefore int
	ScalingMaxAfter  int
}

Result is the resulting data we get from our business function.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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