Documentation ¶
Index ¶
- func GetAWSCredentialsRequestProviderSpec() *cloudcredentialv1.AWSProviderSpec
- func NewAWSInfra(directClient client.Client, rc *reconcilecontext.ReconcileContext) (reconcilecontext.Infra, error)
- type AWSInfra
- func (i *AWSInfra) GetIPCapacity(node *corev1.Node) (uint32, error)
- func (i *AWSInfra) GetUsedIPsByCIDR(rc *reconcilecontext.ReconcileContext) (map[string][]net.IP, error)
- func (i *AWSInfra) ReconcileInstanceSecondaryIPs(rc *reconcilecontext.ReconcileContext) error
- func (i *AWSInfra) RemoveAllAssignedIPs(rc *reconcilecontext.ReconcileContext) error
- type AWSMachineProviderConfig
- type AWSResourceReference
- type Filter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAWSCredentialsRequestProviderSpec ¶
func GetAWSCredentialsRequestProviderSpec() *cloudcredentialv1.AWSProviderSpec
func NewAWSInfra ¶
func NewAWSInfra(directClient client.Client, rc *reconcilecontext.ReconcileContext) (reconcilecontext.Infra, error)
Types ¶
type AWSInfra ¶
type AWSInfra struct {
// contains filtered or unexported fields
}
func (*AWSInfra) GetIPCapacity ¶ added in v1.2.4
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.