eks

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CloudFormationNodeInstanceRole = "NodeInstanceRole"
)

Variables

This section is empty.

Functions

func IsErrorAlreadyExists

func IsErrorAlreadyExists(err error) bool

IsErrorAlreadyExists helper function

func IsErrorBadRequest

func IsErrorBadRequest(err error) bool

IsErrorBadRequest helper function

func IsErrorNotFound

func IsErrorNotFound(err error) bool

IsErrorNotFound helper function

Types

type Client

type Client interface {
	Create(string, awscomputev1alpha1.EKSClusterSpec) (*Cluster, error)
	Get(string) (*Cluster, error)
	Delete(string) error
	CreateWorkerNodes(name string, spec awscomputev1alpha1.EKSClusterSpec) (*ClusterWorkers, error)
	GetWorkerNodes(stackID string) (*ClusterWorkers, error)
	DeleteWorkerNodes(stackID string) error
	ConnectionToken(string) (string, error)
}

Client interface to perform cluster operations

func NewClient

func NewClient(config *aws.Config) Client

NewClient return new instance of the crossplane client for a specific AWS configuration

type Cluster

type Cluster struct {
	Name     string
	ARN      string
	Status   string
	Endpoint string
	CA       string
}

Cluster crossplane representation of the AWS EKS Cluster

func NewCluster

func NewCluster(c *eks.Cluster) *Cluster

NewCluster returns crossplane representation AWS EKS cluster

type ClusterWorkers

type ClusterWorkers struct {
	WorkersStatus cloudformation.StackStatus
	WorkerReason  string
	WorkerStackID string
	WorkerARN     string
}

ClusterWorkers crossplane representation of the AWS EKS cluster worker nodes

func NewClusterWorkers

func NewClusterWorkers(workerStackID string, workerStatus cloudformation.StackStatus, workerReason string, workerARN string) *ClusterWorkers

NewClusterWorkers returns crossplane representation of the AWS EKS cluster worker nodes

type EKSClient

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

EKSClient crossplane eks client

func (*EKSClient) ConnectionToken

func (e *EKSClient) ConnectionToken(name string) (string, error)

ConnectionToken to a cluster

func (*EKSClient) Create

func (e *EKSClient) Create(name string, spec awscomputev1alpha1.EKSClusterSpec) (*Cluster, error)

Create new EKS cluster

func (*EKSClient) CreateWorkerNodes

func (e *EKSClient) CreateWorkerNodes(name string, spec awscomputev1alpha1.EKSClusterSpec) (*ClusterWorkers, error)

CreateWorkerNodes new EKS cluster workers nodes

func (*EKSClient) Delete

func (e *EKSClient) Delete(name string) error

Delete a EKS cluster

func (*EKSClient) DeleteWorkerNodes

func (e *EKSClient) DeleteWorkerNodes(stackID string) error

DeleteWorkerNodes deletes the cloud formation for this stack.

func (*EKSClient) Get

func (e *EKSClient) Get(name string) (*Cluster, error)

Get an existing EKS cluster

func (*EKSClient) GetWorkerNodes

func (e *EKSClient) GetWorkerNodes(stackID string) (*ClusterWorkers, error)

GetWorkerNodes information about existing cloud formation stack

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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