cluster

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2025 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func KubeconfigPath

func KubeconfigPath(clusterName string) string

Types

type Create

type Create struct {
	// contains filtered or unexported fields
}

func NewCreate

func NewCreate(aws aws.Config, logger logr.Logger, endpoint string) Create

NewCreate creates a new workflow to create an EKS cluster. The EKS client will use the specified endpoint or the default endpoint if empty string is passed.

func (*Create) Run

func (c *Create) Run(ctx context.Context, test TestResources) error

type Delete

type Delete struct {
	// contains filtered or unexported fields
}

func NewDelete

func NewDelete(aws aws.Config, logger logr.Logger, endpoint string) Delete

NewDelete creates a new workflow to delete an EKS cluster. The EKS client will use the specified endpoint or the default endpoint if empty string is passed.

func (*Delete) Run

func (c *Delete) Run(ctx context.Context, cluster DeleteInput) error

type DeleteInput

type DeleteInput struct {
	ClusterName   string `yaml:"clusterName"`
	ClusterRegion string `yaml:"clusterRegion"`
	Endpoint      string `yaml:"endpoint"`
}

type NetworkConfig

type NetworkConfig struct {
	VpcCidr           string `yaml:"vpcCidr"`
	PublicSubnetCidr  string `yaml:"publicSubnetCidr"`
	PrivateSubnetCidr string `yaml:"privateSubnetCidr"`
	PodCidr           string `yaml:"podCidr"`
}

type TestResources

type TestResources struct {
	ClusterName       string        `yaml:"clusterName"`
	ClusterRegion     string        `yaml:"clusterRegion"`
	ClusterNetwork    NetworkConfig `yaml:"clusterNetwork"`
	HybridNetwork     NetworkConfig `yaml:"hybridNetwork"`
	KubernetesVersion string        `yaml:"kubernetesVersion"`
	Cni               string        `yaml:"cni"`
	Endpoint          string        `yaml:"endpoint"`
}

Jump to

Keyboard shortcuts

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