nodepool

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: 12 Imported by: 0

Documentation

Overview

Package nodepool implements the "update nodepool" command.

Index

Constants

This section is empty.

Variables

View Source
var (
	// Command is the cobra command for 'gsctl update nodepool'
	Command = &cobra.Command{
		Use:     "nodepool <cluster-name/cluster-id>/<nodepool-id>",
		Aliases: []string{"np"},

		Args:  cobra.ExactArgs(1),
		Short: "Modify node pool details",
		Long: `Change the name or the scaling settings of a node pool.

Setting the '--nodes-min' and '--nodes-max' flags to different values will enable autoscaling (AWS only).

Examples:

  gsctl update nodepool f01r4/75rh1 --name "General purpose M5"

  gsctl update nodepool f01r4/75rh1 --nodes-min 10 --nodes-max 20

  gsctl update nodepool "Cluster name"/75rh1 --nodes-min 10 --nodes-max 20

`,

		PreRun: printValidation,

		Run: printResult,
	}
)

Functions

This section is empty.

Types

type Arguments

type Arguments struct {
	APIEndpoint       string
	AuthToken         string
	ClusterNameOrID   string
	Name              string
	NodePoolID        string
	ScalingMax        int64
	ScalingMin        int64
	ScalingMinSet     bool
	Provider          string
	UserProvidedToken string
}

Arguments represents all the ways the user can influence the command.

Jump to

Keyboard shortcuts

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