cluster

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCluster

func CreateCluster(client *cmv1.ClustersClient, config Spec) (*cmv1.Cluster, error)

func DeleteCluster

func DeleteCluster(client *cmv1.ClustersClient, clusterKey string, creatorARN string) (*cmv1.Cluster, error)

func GetAddOnInstallation added in v1.0.0

func GetAddOnInstallation(client *cmv1.ClustersClient, clusterKey string, creatorARN string,
	addOnID string) (*cmv1.AddOnInstallation, error)

func GetAddOnParameters added in v0.1.5

func GetAddOnParameters(client *cmv1.AddOnsClient, addOnID string) (*cmv1.AddOnParameterList, error)

func GetCluster

func GetCluster(client *cmv1.ClustersClient, clusterKey string, creatorARN string) (*cmv1.Cluster, error)

func GetClusterStatus added in v1.0.7

func GetClusterStatus(client *cmv1.ClustersClient, clusterID string) (*cmv1.ClusterStatus, error)

func GetClusters

func GetClusters(client *cmv1.ClustersClient, creatorARN string, count int) (clusters []*cmv1.Cluster, err error)

func GetPendingClusterForARN added in v1.0.8

func GetPendingClusterForARN(client *cmv1.ClustersClient, creatorARN string) (cluster *cmv1.Cluster, err error)

func HasClusters

func HasClusters(client *cmv1.ClustersClient, creatorARN string) (bool, error)

func InstallAddOn

func InstallAddOn(client *cmv1.ClustersClient, clusterKey string, creatorARN string, addOnID string,
	params []AddOnParam) error

func IsEmptyCIDR added in v0.1.7

func IsEmptyCIDR(cidr net.IPNet) bool

func IsValidClusterKey

func IsValidClusterKey(clusterKey string) bool

func IsValidClusterName

func IsValidClusterName(clusterName string) bool

func UninstallAddOn added in v0.1.5

func UninstallAddOn(client *cmv1.ClustersClient, clusterKey string, creatorARN string, addOnID string) error

func UpdateAddOnInstallation added in v1.0.0

func UpdateAddOnInstallation(client *cmv1.ClustersClient, clusterKey string, creatorARN string, addOnID string,
	params []AddOnParam) error

func UpdateCluster

func UpdateCluster(client *cmv1.ClustersClient, clusterKey string, creatorARN string, config Spec) error

Types

type AddOnParam added in v0.1.5

type AddOnParam struct {
	Key string
	Val string
}

type OperatorIAMRole added in v1.0.6

type OperatorIAMRole struct {
	Name      string
	Namespace string
	RoleARN   string
}

type Spec

type Spec struct {
	// Basic configs
	Name           string
	Region         string
	MultiAZ        bool
	Version        string
	ChannelGroup   string
	Expiration     time.Time
	Flavour        string
	EtcdEncryption bool

	// Scaling config
	ComputeMachineType string
	ComputeNodes       int
	Autoscaling        bool
	MinReplicas        int
	MaxReplicas        int

	// SubnetIDs
	SubnetIds []string

	// AvailabilityZones
	AvailabilityZones []string

	// Network config
	MachineCIDR net.IPNet
	ServiceCIDR net.IPNet
	PodCIDR     net.IPNet
	HostPrefix  int
	Private     *bool
	PrivateLink *bool

	// Properties
	CustomProperties map[string]string

	// User-defined tags for AWS resources
	Tags map[string]string

	// Simulate creating a cluster but don't actually create it
	DryRun *bool

	// Disable SCP checks in the installer by setting credentials mode as mint
	DisableSCPChecks *bool

	// STS
	RoleARN          string
	ExternalID       string
	SupportRoleARN   string
	OperatorIAMRoles []OperatorIAMRole
	MasterRoleARN    string
	WorkerRoleARN    string
}

Spec is the configuration for a cluster spec.

Jump to

Keyboard shortcuts

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