aws

package
v0.0.0-...-d9faf6a Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2021 License: Apache-2.0 Imports: 67 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateClientConfigFromRESTConfig

func GenerateClientConfigFromRESTConfig(name string, restConfig *rest.Config) *configapi.Config

GenerateClientConfigFromRESTConfig generates a new kubeconfig using a given rest.Config. The rest.Config may come from in-cluster config (as in a pod) or an existing kubeconfig.

func InstallCluster

func InstallCluster(name, releaseImage, dhParamsFile string, waitForReady bool) error

func UninstallCluster

func UninstallCluster(name string) error

Types

type AWSHelper

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

func NewAWSHelper

func NewAWSHelper(key string, secret string, region string, infraName string) (*AWSHelper, error)

NewAWSHelper creates an instance of the AWS helper with clients for each of the required services

func (*AWSHelper) EnsureCNameRecord

func (h *AWSHelper) EnsureCNameRecord(zoneID, dnsName, targetName string) error

func (*AWSHelper) EnsureEIP

func (h *AWSHelper) EnsureEIP(name string) (string, string, error)

EnsureEIP ensures that an EIP is allocated with the given name

func (*AWSHelper) EnsureIgnitionBucket

func (h *AWSHelper) EnsureIgnitionBucket(name, fileName string) error

EnsureIgnitionBucket ensures that a bucket with the given name exists and that it contains a file with the contents of the ignition filename passed.

func (*AWSHelper) EnsureListener

func (h *AWSHelper) EnsureListener(lbARN, tgARN string, port int, udp bool) error

func (*AWSHelper) EnsureNLB

func (h *AWSHelper) EnsureNLB(nlbName, subnet, eipAllocID string) (string, string, error)

EnsureNLB ensures that a network load balancer exists with the given subnet. If an EIP allocation ID is passed, it assigns it to the NLB subnet mappings.

func (*AWSHelper) EnsureTarget

func (h *AWSHelper) EnsureTarget(targetGroupARN string, targetID string) error

func (*AWSHelper) EnsureTargetGroup

func (h *AWSHelper) EnsureTargetGroup(vpc, tgName string, port int) (string, error)

EnsureTargetGroup ensures that a target group with the given name and port exists

func (*AWSHelper) EnsureUDPTargetGroup

func (h *AWSHelper) EnsureUDPTargetGroup(vpc, tgName string, port, healthCheckPort int) (string, error)

EnsureUDPTargetGroup ensures that a UDP target group exists with the given port and healt check port

func (*AWSHelper) EnsureWorkersAllowNodePortAccess

func (h *AWSHelper) EnsureWorkersAllowNodePortAccess() error

func (*AWSHelper) LoadBalancerInfo

func (h *AWSHelper) LoadBalancerInfo(machineNames []string) (*LBInfo, error)

LoadBalancerInfo returns load balancer information for one of the zones that contains worker machines

func (*AWSHelper) RemoveCNameRecord

func (h *AWSHelper) RemoveCNameRecord(zoneID, dnsName string) error

func (*AWSHelper) RemoveEIP

func (h *AWSHelper) RemoveEIP(name string) error

func (*AWSHelper) RemoveIgnitionBucket

func (h *AWSHelper) RemoveIgnitionBucket(name string) error

func (*AWSHelper) RemoveNLB

func (h *AWSHelper) RemoveNLB(nlbName string) error

RemoveNLB removes an existing load balancer

func (*AWSHelper) RemoveTargetGroup

func (h *AWSHelper) RemoveTargetGroup(tgName string) error

RemoveTargetGroup removes a target group by name

type Applier

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

func NewApplier

func NewApplier(cfg *rest.Config, namespace string) *Applier

func (*Applier) ApplyFile

func (a *Applier) ApplyFile(fileName string) error

type LBInfo

type LBInfo struct {
	VPC    string
	Zone   string
	Subnet string
}

Jump to

Keyboard shortcuts

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