ekscluster

package
v0.29.10-rc.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InfrastructurePhaseSchemaPath = ".spec.infrastructure"
	KubernetesPhaseSchemaPath     = ".spec.kubernetes"
	DistributionPhaseSchemaPath   = ".spec.distribution"
	PluginsPhaseSchemaPath        = ".spec.plugins"
	AllPhaseSchemaPath            = ""
	StartFromFlagNotSet           = ""
)

Variables

View Source
var (
	ErrUnsupportedPhase = errors.New("unsupported phase")
	ErrInfraNotPresent  = errors.New("the configuration file does not contain an infrastructure section")
	ErrTimeout          = errors.New("timeout reached")
	ErrAbortedByUser    = errors.New("operation aborted by user")
)
View Source
var (
	ErrInvalidNodePoolSize                  = errors.New("invalid node pool size")
	ErrVPNBucketNamePrefix                  = errors.New(".spec.infrastructure.vpn.bucketNamePrefix is required when cluster name is longer than 19 characters")                                   //nolint: lll // long line
	ErrIAMUserNameOverride                  = errors.New(".spec.infrastructure.vpn.iamUserNameOverride is required when cluster name is longer than 19 characters")                                //nolint: lll // long line
	ErrClusterIAMRoleNamePrefixOverride     = errors.New(".spec.kubernetes.clusterIAMRoleNamePrefixOverride is required when cluster name is longer than 40 characters")                           //nolint: lll // long line
	ErrWorkersIAMRoleNamePrefixOverride     = errors.New(".spec.kubernetes.workersIAMRoleNamePrefixOverride is required when cluster name is longer than 40 characters")                           //nolint: lll // long line
	ErrEBSCSIDriverIAMRoleNameOverride      = errors.New(".spec.distribution.modules.aws.ebsCsiDriver.overrides.iamRoleName is required when cluster name is longer than 40 characters")           //nolint: lll // long line
	ErrClusterAutoscalerIAMRoleNameOverride = errors.New(".spec.distribution.modules.aws.clusterAutoscaler.overrides.iamRoleName is required when cluster name is longer than 40 characters")      //nolint: lll // long line
	ErrLBControllerIAMRoleNameOverride      = errors.New(".spec.distribution.modules.aws.loadbalancerController.overrides.iamRoleName is required when cluster name is longer than 40 characters") //nolint: lll // long line
)
View Source
var ErrOpenVPNNotInstalled = errors.New("openvpn is not installed")
View Source
var ErrRenewNotSupported = errors.New("you can't renew certificates for EKSCluster")

Functions

This section is empty.

Types

type CertificatesRenewer added in v0.29.4

type CertificatesRenewer struct{}

func (*CertificatesRenewer) Renew added in v0.29.4

func (*CertificatesRenewer) Renew() error

func (*CertificatesRenewer) SetProperties added in v0.29.4

func (*CertificatesRenewer) SetProperty added in v0.29.4

func (*CertificatesRenewer) SetProperty(_ string, _ any)

type ClusterCreator

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

func (*ClusterCreator) Create

func (v *ClusterCreator) Create(startFrom string, timeout, _ int) error

func (*ClusterCreator) CreateAsync

func (v *ClusterCreator) CreateAsync(
	phases *Phases,
	startFrom string,
	vpnConnector *vpn.Connector,
	upgr *upgrade.Upgrade,
	errCh chan error,
	doneCh chan bool,
)

func (*ClusterCreator) GetPhasePath

func (*ClusterCreator) GetPhasePath(phase string) (string, error)

func (*ClusterCreator) RenderConfig

func (v *ClusterCreator) RenderConfig() (map[string]any, error)

func (*ClusterCreator) SetProperties

func (v *ClusterCreator) SetProperties(props []cluster.CreatorProperty)

func (*ClusterCreator) SetProperty

func (v *ClusterCreator) SetProperty(name string, value any)

type ClusterDeleter

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

func (*ClusterDeleter) Delete

func (d *ClusterDeleter) Delete() error

func (*ClusterDeleter) SetProperties

func (d *ClusterDeleter) SetProperties(props []cluster.DeleterProperty)

func (*ClusterDeleter) SetProperty

func (d *ClusterDeleter) SetProperty(name string, value any)

type ExtraSchemaValidator

type ExtraSchemaValidator struct{}

func (*ExtraSchemaValidator) Validate

func (v *ExtraSchemaValidator) Validate(confPath string) error

type ExtraToolsValidator

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

func NewExtraToolsValidator

func NewExtraToolsValidator(executor execx.Executor, autoConnect bool) *ExtraToolsValidator

func (*ExtraToolsValidator) Validate

func (x *ExtraToolsValidator) Validate(confPath string) ([]string, []error)

type KubeconfigGetter added in v0.29.1

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

func (*KubeconfigGetter) Get added in v0.29.1

func (k *KubeconfigGetter) Get() error

func (*KubeconfigGetter) SetProperties added in v0.29.1

func (k *KubeconfigGetter) SetProperties(props []cluster.KubeconfigProperty)

func (*KubeconfigGetter) SetProperty added in v0.29.1

func (k *KubeconfigGetter) SetProperty(name string, value any)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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