Documentation ¶
Index ¶
- func NewCmdHelpers(f *util.Factory, out io.Writer) *cobra.Command
- func ReadAllInstanceGroups(ctx context.Context, clientset simple.Clientset, cluster *kops.Cluster) ([]*kops.InstanceGroup, error)
- func RunToolboxEnroll(ctx context.Context, f commandutils.Factory, out io.Writer, ...) error
- func SetClusterFields(fields []string, cluster *api.Cluster) error
- func SetInstancegroupFields(fields []string, instanceGroup *api.InstanceGroup) error
- func UnsetClusterFields(fields []string, cluster *api.Cluster) error
- func UnsetInstancegroupFields(fields []string, instanceGroup *api.InstanceGroup) error
- func UpdateCluster(ctx context.Context, clientset simple.Clientset, cluster *kops.Cluster, ...) error
- func UpdateInstanceGroup(ctx context.Context, clientset simple.Clientset, cluster *kops.Cluster, ...) error
- type CommandOutput
- type ExecOptions
- type SSHHost
- type ToolboxEnrollOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCmdHelpers ¶ added in v1.19.0
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 RunToolboxEnroll ¶ added in v1.29.0
func RunToolboxEnroll(ctx context.Context, f commandutils.Factory, out io.Writer, options *ToolboxEnrollOptions) error
func SetClusterFields ¶
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
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 CommandOutput ¶ added in v1.29.0
CommandOutput holds the results of running a command.
type ExecOptions ¶ added in v1.29.0
ExecOptions holds options for running a command remotely.
type SSHHost ¶ added in v1.29.0
type SSHHost struct {
// contains filtered or unexported fields
}
SSHHost is a wrapper around an SSH connection to a host machine.
type ToolboxEnrollOptions ¶ added in v1.29.0
type ToolboxEnrollOptions struct { ClusterName string InstanceGroup string Host string SSHUser string SSHPort int }
func (*ToolboxEnrollOptions) InitDefaults ¶ added in v1.29.0
func (o *ToolboxEnrollOptions) InitDefaults()