scope

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRoute53Client

func NewRoute53Client(session cloud.Session, arn string, target runtime.Object) *route53.Route53

NewRoute53Client creates a new Route53 API client for a given session

func NewRoute53ResolverClient added in v0.4.1

func NewRoute53ResolverClient(session cloud.Session, arn string, target runtime.Object) *route53resolver.Route53Resolver

NewRoute53ResolverClient creates a new Route53 API client for a given session

Types

type AWSClients

type AWSClients struct {
	Route53 *route53.Route53
}

AWSClients contains all the aws clients used by the scopes

type ClusterScope

type ClusterScope struct {
	AWSCluster *infrav1.AWSCluster
	// contains filtered or unexported fields
}

ClusterScope defines the basic context for an actuator to operate upon.

func NewClusterScope

func NewClusterScope(params ClusterScopeParams) (*ClusterScope, error)

NewClusterScope creates a new Scope from the supplied parameters. This is meant to be called for each reconcile iteration.

func (*ClusterScope) APIEndpoint

func (s *ClusterScope) APIEndpoint() string

APIEndpoint returns the AWS infrastructure Kubernetes API endpoint.

func (*ClusterScope) ARN

func (s *ClusterScope) ARN() string

ARN returns the AWS SDK assumed role. Used for creating workload cluster client.

func (*ClusterScope) AdditionalVPCToAssign added in v0.4.0

func (s *ClusterScope) AdditionalVPCToAssign() []string

AdditionalVPCToAssign returns the list of extra VPC ids which should be assigned to a private hosted zone

func (*ClusterScope) AssociateResolverRules added in v0.4.1

func (s *ClusterScope) AssociateResolverRules() bool

AssociateResolverRules enables assigning all resolver rules to workload cluster VPC

func (*ClusterScope) BaseDomain

func (s *ClusterScope) BaseDomain() string

BaseDomain returns the workload cluster basedomain.

func (*ClusterScope) BastionIP added in v0.3.0

func (s *ClusterScope) BastionIP() string

func (*ClusterScope) InfraCluster

func (s *ClusterScope) InfraCluster() cloud.ClusterObject

InfraCluster returns the AWS infrastructure cluster or control plane object.

func (*ClusterScope) Logger added in v0.5.3

func (s *ClusterScope) Logger() logr.Logger

func (*ClusterScope) Name

func (s *ClusterScope) Name() string

Name returns the AWS infrastructure cluster name.

func (*ClusterScope) PrivateZone added in v0.4.0

func (s *ClusterScope) PrivateZone() bool

PrivateZone returns true if the desired route53 Zone should be private

func (*ClusterScope) Region

func (s *ClusterScope) Region() string

Region returns the cluster region.

func (*ClusterScope) ResolverRulesCreatorAccount added in v0.5.1

func (s *ClusterScope) ResolverRulesCreatorAccount() string

ResolverRulesCreatorAccount returns the account id to be used to filter dns rules associations

func (*ClusterScope) Session

func (s *ClusterScope) Session() awsclient.ConfigProvider

Session returns the AWS SDK session. Used for creating workload cluster client.

func (*ClusterScope) VPC added in v0.4.0

func (s *ClusterScope) VPC() string

VPC returns the AWSCluster vpc ID

func (*ClusterScope) VPCCidr added in v0.5.3

func (s *ClusterScope) VPCCidr() string

VPCCidr returns cidr of cluster's VPC

type ClusterScopeParams

type ClusterScopeParams struct {
	ARN                         string
	AssociateResolverRules      bool
	AWSCluster                  *infrav1.AWSCluster
	BaseDomain                  string
	BastionIP                   string
	Logger                      logr.Logger
	Session                     awsclient.ConfigProvider
	ResolverRulesOwnerAccountId string
}

ClusterScopeParams defines the input parameters used to create a new Scope.

type ManagementClusterScope

type ManagementClusterScope struct {
	AWSCluster *infrav1.AWSCluster
	// contains filtered or unexported fields
}

ManagementClusterScope defines the basic context for an actuator to operate upon.

func NewManagementClusterScope

func NewManagementClusterScope(params ManagementClusterScopeParams) (*ManagementClusterScope, error)

NewManagementClusterScope creates a new Scope from the supplied parameters. This is meant to be called for each reconcile iteration.

func (*ManagementClusterScope) ARN

func (s *ManagementClusterScope) ARN() string

ARN returns the AWS SDK assumed role. Used for creating workload cluster client.

func (*ManagementClusterScope) BaseDomain

func (s *ManagementClusterScope) BaseDomain() string

BaseDomain returns the management cluster basedomain.

func (*ManagementClusterScope) InfraCluster

func (s *ManagementClusterScope) InfraCluster() cloud.ClusterObject

InfraCluster returns the AWS infrastructure cluster or control plane object.

func (*ManagementClusterScope) Logger added in v0.5.3

func (s *ManagementClusterScope) Logger() logr.Logger

func (*ManagementClusterScope) Region added in v0.4.0

func (s *ManagementClusterScope) Region() string

Region returns the cluster region.

func (*ManagementClusterScope) Session

Session returns the AWS SDK session. Used for creating workload cluster client.

func (*ManagementClusterScope) VPC added in v0.4.0

func (s *ManagementClusterScope) VPC() string

VPC returns the management cluster VPC ID

type ManagementClusterScopeParams

type ManagementClusterScopeParams struct {
	ARN        string
	AWSCluster *infrav1.AWSCluster
	BaseDomain string
	Logger     logr.Logger
	Session    awsclient.ConfigProvider
}

ManagementClusterScopeParams defines the input parameters used to create a new Scope.

type ManagementRoute53Scope

type ManagementRoute53Scope interface {
	cloud.ManagementClusterScoper
}

ManagementRoute53Scope is a scope for use with the Route53 reconciling service in management cluster

type Route53Scope

type Route53Scope interface {
	cloud.ClusterScoper
}

Route53Scope is a scope for use with the Route53 reconciling service in workload cluster

type ServiceEndpoint

type ServiceEndpoint struct {
	ServiceID     string
	URL           string
	SigningRegion string
}

ServiceEndpoint defines a tuple containing AWS Service resolution information

Jump to

Keyboard shortcuts

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