commands

package
v1.22.2 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2021 License: Apache-2.0 Imports: 17 Imported by: 26

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdHelpers added in v1.19.0

func NewCmdHelpers(f *util.Factory, out io.Writer) *cobra.Command

NewCmdHelpers builds the cobra command tree for the `helpers` subcommand

func ReadAllInstanceGroups

func ReadAllInstanceGroups(ctx context.Context, clientset simple.Clientset, cluster *kops.Cluster) ([]*kops.InstanceGroup, error)

ReadAllInstanceGroups reads all the instance groups for the cluster

func RunVersion added in v1.15.1

func RunVersion(f *util.Factory, out io.Writer, options *VersionOptions) error

RunVersion implements the version command logic

func SetClusterFields

func SetClusterFields(fields []string, cluster *api.Cluster) error

SetClusterFields sets field values in the cluster

func SetInstancegroupFields added in v1.20.0

func SetInstancegroupFields(fields []string, instanceGroup *api.InstanceGroup) error

SetInstancegroupFields sets field values in the instance group.

func UnsetClusterFields added in v1.21.3

func UnsetClusterFields(fields []string, cluster *api.Cluster) error

UnsetClusterFields unsets field values in the cluster

func UnsetInstancegroupFields added in v1.21.3

func UnsetInstancegroupFields(fields []string, instanceGroup *api.InstanceGroup) error

UnsetInstancegroupFields sets field values in the instance group.

func UpdateCluster

func UpdateCluster(ctx context.Context, clientset simple.Clientset, cluster *kops.Cluster, instanceGroups []*kops.InstanceGroup) error

UpdateCluster writes the updated cluster to the state store, after performing validation

func UpdateInstanceGroup added in v1.20.0

func UpdateInstanceGroup(ctx context.Context, clientset simple.Clientset, cluster *kops.Cluster, allInstanceGroups []*kops.InstanceGroup, instanceGroupToUpdate *kops.InstanceGroup) error

UpdateInstanceGroup writes the updated instance group to the state store after performing validation

Types

type VersionOptions added in v1.15.1

type VersionOptions struct {
	Short bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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