e2e

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogger

func NewLogger(opts ...LoggerOption) logr.Logger

func SanitizeForAWSName added in v1.0.1

func SanitizeForAWSName(input string) string

SanitizeForAWSName removes everything except alphanumeric characters and hyphens from a string.

func Truncate added in v1.0.1

func Truncate(name string, limit int) string

Truncate drops characters from the end of a string if it exceeds the limit.

Types

type Cluster

type Cluster struct {
	Name   string
	Region string
}

type CredsOS added in v1.0.1

type CredsOS interface {
	Name() string
}

CredsOS is the Node OS.

type EksResolverV2 added in v1.0.2

type EksResolverV2 struct {
	Endpoint string
}

EksResolverV2 is used to resolve custom endpoints for EKS clients.

func (*EksResolverV2) ResolveEndpoint added in v1.0.2

func (r *EksResolverV2) ResolveEndpoint(ctx context.Context, params eks.EndpointParameters) (
	smithyendpoints.Endpoint, error,
)

ResolveEndpoint resolves to a custom endpoint if not empty or default otherwise.

type File added in v1.0.1

type File struct {
	Content     string
	Path        string
	Permissions string
}

File represents a file in disk.

type HybridEC2Node added in v1.0.1

type HybridEC2Node struct {
	Node corev1.Node
}

HybridEC2Node represents a Hybrid Node backed by an EC2 instance.

type LoggerConfig added in v1.0.2

type LoggerConfig struct {
	NoColor bool
}

func (LoggerConfig) Apply added in v1.0.2

func (c LoggerConfig) Apply(opts *LoggerConfig)

type LoggerOption added in v1.0.2

type LoggerOption interface {
	Apply(*LoggerConfig)
}

type LogsUploadUrl added in v1.0.1

type LogsUploadUrl struct {
	Name string
	Url  string
}

type NodeSpec added in v1.0.1

type NodeSpec struct {
	Cluster    *Cluster
	NamePrefix string
	OS         CredsOS
	Provider   NodeadmCredentialsProvider
}

NodeSpec is a specification for a node.

type NodeadmCredentialsProvider added in v1.0.1

type NodeadmCredentialsProvider interface {
	Name() creds.CredentialProvider
	NodeadmConfig(ctx context.Context, node NodeSpec) (*api.NodeConfig, error)
	VerifyUninstall(ctx context.Context, instanceId string) error
	FilesForNode(spec NodeSpec) ([]File, error)
}

type NodeadmOS added in v1.0.1

type NodeadmOS interface {
	Name() string
	AMIName(ctx context.Context, awsConfig aws.Config) (string, error)
	BuildUserData(UserDataInput UserDataInput) ([]byte, error)
	InstanceType(region string) string
}

NodeadmOS defines an interface for operating system-specific behavior.

type NodeadmURLs added in v1.0.1

type NodeadmURLs struct {
	AMD string
	ARM string
}

type UserDataInput added in v1.0.1

type UserDataInput struct {
	CredsProviderName string
	KubernetesVersion string
	NodeadmUrls       NodeadmURLs
	NodeadmConfigYaml string
	Provider          string
	PublicKey         string
	RootPasswordHash  string
	Files             []File
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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