cluster

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2021 License: Apache-2.0 Imports: 12 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 GetClusters

func GetClusters(client *cmv1.ClustersClient, creatorARN string, count int) (clusters []*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

nolint:interfacer

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 Spec

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

	// 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

	// Properties
	CustomProperties 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
}

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