create

package
v0.27.3-rc.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	LifecyclePreApply  = "pre-apply"
	LifecyclePostApply = "post-apply"
)

Variables

View Source
var (
	ErrKubeconfigNotSet = errors.New("KUBECONFIG env variable is not set")
)

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 public.KfddistributionKfdV1Alpha2,
	kfdManifest config.KFD,
	dryRun bool,
	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 PreFlight added in v0.27.0

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

func NewPreFlight added in v0.27.0

func NewPreFlight(
	furyctlConf public.KfddistributionKfdV1Alpha2,
	kfdManifest config.KFD,
	paths cluster.CreatorPaths,
	dryRun bool,
	stateStore state.Storer,
	force bool,
) *PreFlight

func (*PreFlight) CheckReducerDiffs added in v0.27.0

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

func (*PreFlight) CheckStateDiffs added in v0.27.0

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

func (*PreFlight) CreateDiffChecker added in v0.27.0

func (p *PreFlight) CreateDiffChecker(storedCfgStr []byte) (diffs.Checker, error)

func (*PreFlight) Exec added in v0.27.0

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

func (*PreFlight) GetStateFromCluster added in v0.27.0

func (p *PreFlight) GetStateFromCluster() ([]byte, 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