aws

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAWSCredentialsRequestProviderSpec

func GetAWSCredentialsRequestProviderSpec() *cloudcredentialv1.AWSProviderSpec

Types

type AWSInfra

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

func (*AWSInfra) GetIPCapacity added in v1.2.4

func (i *AWSInfra) GetIPCapacity(node *corev1.Node) (uint32, error)

func (*AWSInfra) GetUsedIPsByCIDR

func (i *AWSInfra) GetUsedIPsByCIDR(rc *reconcilecontext.ReconcileContext) (map[string][]net.IP, error)

GetUsedIPsByCIDR returns a map of reserved IPs by CIDR, this IPs cannot be used for assigning to namespaces

func (*AWSInfra) ReconcileInstanceSecondaryIPs

func (i *AWSInfra) ReconcileInstanceSecondaryIPs(rc *reconcilecontext.ReconcileContext) error

ReconcileInstanceSecondaryIPs will make sure that Assigned Egress IPs to instances are correclty reconciled this includes adding and possibly removing secondary IPs to selected instances.

func (*AWSInfra) RemoveAllAssignedIPs

func (i *AWSInfra) RemoveAllAssignedIPs(rc *reconcilecontext.ReconcileContext) error

RemoveAllAssignedIPs uncoditionally remoevs all the assigned IPs to VMs, used in clean-up login

type AWSMachineProviderConfig

type AWSMachineProviderConfig struct {
	//TODO As par of the hack I deleted all the other fields in the hope this will make it more stable.
	// Subnet is a reference to the subnet to use for this instance
	Subnet AWSResourceReference `json:"subnet"`
}

AWSMachineProviderConfig is the Schema for the awsmachineproviderconfigs API +k8s:openapi-gen=true

type AWSResourceReference

type AWSResourceReference struct {
	// ID of resource
	// +optional
	ID *string `json:"id,omitempty"`

	// ARN of resource
	// +optional
	ARN *string `json:"arn,omitempty"`

	// Filters is a set of filters used to identify a resource
	Filters []Filter `json:"filters,omitempty"`
}

AWSResourceReference is a reference to a specific AWS resource by ID, ARN, or filters. Only one of ID, ARN or Filters may be specified. Specifying more than one will result in a validation error.

type Filter

type Filter struct {
	// Name of the filter. Filter names are case-sensitive.
	Name string `json:"name"`

	// Values includes one or more filter values. Filter values are case-sensitive.
	Values []string `json:"values,omitempty"`
}

Filter is a filter used to identify an AWS resource

Jump to

Keyboard shortcuts

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