commands

package
v1.15.1 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2020 License: Apache-2.0 Imports: 21 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadAllInstanceGroups

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

ReadAllInstanceGroups reads all the instance groups for the cluster

func RunSetCluster

func RunSetCluster(f *util.Factory, cmd *cobra.Command, out io.Writer, options *SetClusterOptions) error

RunSetCluster implements the set cluster command logic

func RunVersion

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, instanceGroups []*api.InstanceGroup) error

SetClusterFields sets field values in the cluster

func UpdateCluster

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

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

Types

type CloudDiscoveryStatusStore

type CloudDiscoveryStatusStore struct {
}

CloudDiscoveryStatusStore implements status.Store by inspecting cloud objects. Likely temporary until we validate our status usage

func (*CloudDiscoveryStatusStore) FindClusterStatus

func (s *CloudDiscoveryStatusStore) FindClusterStatus(cluster *kops.Cluster) (*kops.ClusterStatus, error)

FindClusterStatus discovers the status of the cluster, by inspecting the cloud objects

func (*CloudDiscoveryStatusStore) GetApiIngressStatus

func (s *CloudDiscoveryStatusStore) GetApiIngressStatus(cluster *kops.Cluster) ([]kops.ApiIngressStatus, error)

type SetClusterOptions

type SetClusterOptions struct {
	Fields      []string
	ClusterName string
}

type VersionOptions

type VersionOptions struct {
	Short bool
}

Jump to

Keyboard shortcuts

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