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 RunSetCluster(ctx context.Context, f *util.Factory, cmd *cobra.Command, out io.Writer, ...) error
- func RunSetInstancegroup(ctx context.Context, f *util.Factory, cmd *cobra.Command, out io.Writer, ...) error
- func RunVersion(f *util.Factory, out io.Writer, options *VersionOptions) error
- func SetClusterFields(fields []string, cluster *api.Cluster) error
- func SetInstancegroupFields(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 CloudDiscoveryStatusStore
- type SetClusterOptions
- type SetInstanceGroupOptions
- type VersionOptions
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 RunSetCluster ¶
func RunSetCluster(ctx context.Context, f *util.Factory, cmd *cobra.Command, out io.Writer, options *SetClusterOptions) error
RunSetCluster implements the set cluster command logic
func RunSetInstancegroup ¶ added in v1.20.0
func RunSetInstancegroup(ctx context.Context, f *util.Factory, cmd *cobra.Command, out io.Writer, options *SetInstanceGroupOptions) error
RunSetInstancegroup implements the set instancegroup command logic.
func RunVersion ¶ added in v1.15.1
RunVersion implements the version command logic
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 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 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 SetInstanceGroupOptions ¶ added in v1.20.0
SetInstanceGroupOptions contains the options for setting configuration on an instance group.
type VersionOptions ¶ added in v1.15.1
type VersionOptions struct {
Short bool
}