cluster

package
v0.0.0-...-597cd30 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (

	//Todo: until we have irsa support - https://github.com/awslabs/kubernetes-iteration-toolkit/issues/186,
	//this role name is tightly coupled with tekton pipelines and tasks; Please ensure you change tasks/ accordingly if you change this rolename
	TenantControlPlaneNodeRole = "tenant-controlplane-node-role"
)

Variables

This section is empty.

Functions

func DefaultClusterConfig

func DefaultClusterConfig(substrate *v1alpha1.Substrate) *kubeadm.InitConfiguration

func ErrNoSuchBucket

func ErrNoSuchBucket(err error) bool

func NewDirectoryIterator

func NewDirectoryIterator(bucket, dir string) (s3manager.BatchUploadIterator, error)

NewDirectoryIterator builds a new DirectoryIterator

Types

type Address

type Address struct {
	EC2 *ec2.EC2
}

func (*Address) Create

func (a *Address) Create(ctx context.Context, substrate *v1alpha1.Substrate) (reconcile.Result, error)

func (*Address) Delete

func (a *Address) Delete(ctx context.Context, substrate *v1alpha1.Substrate) (reconcile.Result, error)

type Config

type Config struct {
	S3         *s3.S3
	STS        *sts.STS
	S3Uploader *s3manager.Uploader

	EC2 *ec2.EC2
	// contains filtered or unexported fields
}

func (*Config) Create

func (c *Config) Create(ctx context.Context, substrate *v1alpha1.Substrate) (reconcile.Result, error)

func (*Config) Delete

func (c *Config) Delete(ctx context.Context, substrate *v1alpha1.Substrate) (reconcile.Result, error)

type DirectoryIterator

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

DirectoryIterator represents an iterator of a specified directory

func (*DirectoryIterator) Err

func (d *DirectoryIterator) Err() error

Err returns error of DirectoryIterator

func (*DirectoryIterator) Next

func (d *DirectoryIterator) Next() bool

Next returns whether next file exists or not

func (*DirectoryIterator) UploadObject

func (d *DirectoryIterator) UploadObject() s3manager.BatchUploadObject

UploadObject uploads a file

type Instance

type Instance struct {
	EC2 *ec2.EC2
}

func (*Instance) Create

func (i *Instance) Create(ctx context.Context, substrate *v1alpha1.Substrate) (reconcile.Result, error)

func (*Instance) Delete

func (i *Instance) Delete(ctx context.Context, substrate *v1alpha1.Substrate) (reconcile.Result, error)

type InstanceProfile

type InstanceProfile struct {
	IAM *iam.IAM
}

func (*InstanceProfile) Create

func (i *InstanceProfile) Create(ctx context.Context, substrate *v1alpha1.Substrate) (reconcile.Result, error)

func (*InstanceProfile) CreateInstanceProfile

func (i *InstanceProfile) CreateInstanceProfile(ctx context.Context, resourceName, policy *string, managedPolicies []string) (reconcile.Result, error)

func (*InstanceProfile) Delete

func (i *InstanceProfile) Delete(ctx context.Context, substrate *v1alpha1.Substrate) (reconcile.Result, error)

func (*InstanceProfile) DeleteInstanceProfile

func (i *InstanceProfile) DeleteInstanceProfile(ctx context.Context, resourceName, policy *string, managedPolicies []string) (reconcile.Result, error)

type LaunchTemplate

type LaunchTemplate struct {
	EC2    *ec2.EC2
	SSM    *ssm.SSM
	Region *string
}

func (*LaunchTemplate) Create

func (l *LaunchTemplate) Create(ctx context.Context, substrate *v1alpha1.Substrate) (reconcile.Result, error)

func (*LaunchTemplate) Delete

func (l *LaunchTemplate) Delete(ctx context.Context, substrate *v1alpha1.Substrate) (reconcile.Result, error)

type Readiness

type Readiness struct{}

Readiness checks if the substrate API server endpoint it ready and sets the ready status on the *v1alpha1.Substrate object indicating other controllers like kube-proxy, rbac to proceed

func (*Readiness) Create

func (r *Readiness) Create(ctx context.Context, substrate *v1alpha1.Substrate) (reconcile.Result, error)

func (*Readiness) Delete

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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