scope

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	/* #nosec G101 */
	KubeConfigSecretSuffix = "-kubeconfig"
	KubeConfigSecretKey    = "value"
)

Variables

This section is empty.

Functions

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidcConfig asserts invalidConfigError.

func NewRoute53Client

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

NewRoute53Client 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 {
	// contains filtered or unexported fields
}

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

func NewClusterScope

func NewClusterScope(ctx context.Context, 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 Cluster Kubernetes API endpoint.

func (*ClusterScope) BaseDomain

func (s *ClusterScope) BaseDomain() string

BaseDomain returns the cluster basedomain.

func (*ClusterScope) BastionIP

func (s *ClusterScope) BastionIP() string

BastionIP returns the bastion IP.

func (*ClusterScope) Cluster

func (s *ClusterScope) Cluster() *capi.Cluster

Cluster returns the cluster.

func (*ClusterScope) ClusterDomain

func (s *ClusterScope) ClusterDomain() string

ClusterDomain returns the cluster domain.

func (*ClusterScope) ClusterK8sClient

func (s *ClusterScope) ClusterK8sClient(ctx context.Context) (client.Client, error)

ClusterK8sClient returns a client to interact with the cluster.

func (*ClusterScope) InfrastructureCluster

func (s *ClusterScope) InfrastructureCluster() *unstructured.Unstructured

InfrastructureCluster returns the infrastructure cluster.

func (*ClusterScope) ManagementCluster

func (s *ClusterScope) ManagementCluster() string

ManagementCluster returns the name of the management cluster.

func (*ClusterScope) Name

func (s *ClusterScope) Name() string

Name returns the cluster name.

func (*ClusterScope) Session

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

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

type ClusterScopeParams

type ClusterScopeParams struct {
	BaseDomain            string
	Cluster               *capi.Cluster
	InfrastructureCluster *unstructured.Unstructured
	ManagementCluster     string
	StaticBastionIP       string
}

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

type Route53Scope

type Route53Scope interface {
	cloud.ClusterScoper
}

Route53Scope is a scope for use with the Route53 reconciling service

Jump to

Keyboard shortcuts

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