create

package
v0.27.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2024 License: Apache-2.0 Imports: 43 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LifecyclePreTf     = "pre-tf"
	LifecyclePostTf    = "post-tf"
	LifecyclePreApply  = "pre-apply"
	LifecyclePostApply = "post-apply"
)
View Source
const SErrWrapWithStr = "%w: %s"

Variables

View Source
var (
	ErrVpcIDNotFound = errors.New("vpc_id not found in infra output")
	ErrVpcIDFromOut  = errors.New("cannot read vpc_id from infrastructure's output.json")
	ErrWritingTfVars = errors.New("error writing terraform variables file")
	ErrAbortedByUser = errors.New("aborted by user")
)
View Source
var (
	ErrAWSS3BucketNotFound                   = errors.New("AWS S3 Bucket not found")
	ErrAWSS3BucketRegionMismatch             = errors.New("AWS S3 Bucket region mismatch")
	ErrCannotCreateTerraformStateAWSS3Bucket = errors.New("cannot create terraform state aws s3 bucket")
	ErrEnsureTerraformStateAWSS3Bucket       = errors.New("cannot ensure terraform state aws s3 bucket is present")

	ErrPreflightFailed = errors.New("preflight execution failed")
)

Functions

This section is empty.

Types

type Distribution

type Distribution struct {
	*cluster.OperationPhase
	// contains filtered or unexported fields
}

func NewDistribution

func NewDistribution(
	paths cluster.CreatorPaths,
	furyctlConf private.EksclusterKfdV1Alpha2,
	kfdManifest config.KFD,
	infraOutputsPath string,
	dryRun bool,
	phase string,
	upgr *upgrade.Upgrade,
) *Distribution

func (*Distribution) Exec

func (d *Distribution) Exec(
	reducers v1alpha2.Reducers,
	startFrom string,
	upgradeState *upgrade.State,
) error

func (*Distribution) Self added in v0.27.0

func (d *Distribution) Self() *cluster.OperationPhase

func (*Distribution) Stop

func (d *Distribution) Stop() error

func (*Distribution) SupportsLifecycle added in v0.27.0

func (*Distribution) SupportsLifecycle(lifecycle string) bool

type Infrastructure

type Infrastructure struct {
	*cluster.OperationPhase
	// contains filtered or unexported fields
}

func NewInfrastructure

func NewInfrastructure(
	furyctlConf private.EksclusterKfdV1Alpha2,
	kfdManifest config.KFD,
	paths cluster.CreatorPaths,
	dryRun bool,
	upgr *upgrade.Upgrade,
) *Infrastructure

func (*Infrastructure) Exec

func (i *Infrastructure) Exec(startFrom string, upgradeState *upgrade.State) error

func (*Infrastructure) Self added in v0.27.0

func (*Infrastructure) Stop

func (i *Infrastructure) Stop() error

type Kubernetes

type Kubernetes struct {
	*cluster.OperationPhase
	// contains filtered or unexported fields
}

func NewKubernetes

func NewKubernetes(
	furyctlConf private.EksclusterKfdV1Alpha2,
	kfdManifest config.KFD,
	infraOutputsPath string,
	paths cluster.CreatorPaths,
	dryRun bool,
	upgr *upgrade.Upgrade,
) *Kubernetes

func (*Kubernetes) Exec

func (k *Kubernetes) Exec(startFrom string, upgradeState *upgrade.State) error

func (*Kubernetes) Self added in v0.27.0

func (k *Kubernetes) Self() *cluster.OperationPhase

func (*Kubernetes) Stop

func (k *Kubernetes) Stop() error

type PreFlight added in v0.27.0

type PreFlight struct {
	*cluster.OperationPhase
	// contains filtered or unexported fields
}

Preflight is a phase tasked with ensuring cluster connectivity and checking for violations in the updates made on the furyctl.yaml file.

func NewPreFlight added in v0.27.0

func NewPreFlight(
	furyctlConf private.EksclusterKfdV1Alpha2,
	kfdManifest config.KFD,
	paths cluster.CreatorPaths,
	dryRun bool,
	vpnAutoConnect bool,
	skipVpn bool,
	force bool,
) (*PreFlight, error)

func (*PreFlight) CheckImmutablesDiffs added in v0.27.0

func (p *PreFlight) CheckImmutablesDiffs(d r3diff.Changelog, diffChecker diffs.Checker) error

CheckImmutablesDiffs checks if there have been changes to immutable fields in the furyctl.yaml.

func (*PreFlight) CheckReducersDiffs added in v0.27.0

func (p *PreFlight) CheckReducersDiffs(d r3diff.Changelog, diffChecker diffs.Checker) error

CheckReducersDiffs checks if the changes to the reducers are supported by the distribution. This is needed as not all from/to combinations are supported.

func (*PreFlight) CreateDiffChecker added in v0.27.0

func (p *PreFlight) CreateDiffChecker() (diffs.Checker, error)

func (*PreFlight) Exec added in v0.27.0

func (p *PreFlight) Exec() (*Status, error)

func (*PreFlight) GenerateDiffs added in v0.27.0

func (*PreFlight) GenerateDiffs(diffChecker diffs.Checker) (r3diff.Changelog, error)

type Status added in v0.27.0

type Status struct {
	Diffs   r3diff.Changelog
	Success bool
}

Jump to

Keyboard shortcuts

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