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 "update cluster" command.

Index

Constants

This section is empty.

Variables

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

		Args:  cobra.ExactArgs(1),
		Short: "Modify cluster details",
		Long: `Change the details of a cluster

Examples:

  gsctl update cluster f01r4 --name "Precious Production Cluster"
  gsctl update cluster "Cluster name" --name "Precious Production Cluster"

  gsctl update cluster f01r4 --label environment=testing --label labeltodelete=
  gsctl update cluster f01r4 --master-ha=true
`,

		PreRun: printValidation,

		Run: printResult,
	}
)

Functions

func IsHAMastersNotSupported

func IsHAMastersNotSupported(err error) bool

IsHAMastersNotSupported asserts haMastersNotSupportedError.

func IsRevertHAMasterNotAllowed

func IsRevertHAMasterNotAllowed(err error) bool

IsRevertHAMasterNotAllowed asserts revertHAMasterNotAllowedError.

Types

type Arguments

type Arguments struct {
	APIEndpoint       string
	AuthToken         string
	ClusterNameOrID   string
	MasterHA          bool
	Labels            []string
	Name              string
	UserProvidedToken string
	Verbose           bool
}

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