ac000

package
v0.0.0-...-b04011d Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Plan = []plan.Step{
	{
		Action:  "ac001",
		Backoff: plan.NewBackoff(10*time.Second, 2*time.Second),
		Comment: "create cluster CRs",
	},
	{
		Action:  "ac002",
		Backoff: plan.NewBackoff(24*time.Minute, 3*time.Minute),
		Comment: "check cluster access",
	},
	{
		Action:  "ac003",
		Backoff: plan.NewBackoff(10*time.Second, 2*time.Second),
		Comment: "check master count",
	},
	{
		Action:  "ac004",
		Backoff: plan.NewBackoff(10*time.Second, 2*time.Second),
		Comment: "check worker count",
	},
	{
		Action:  "ac005",
		Backoff: plan.NewBackoff(10*time.Second, 2*time.Second),
		Comment: "create node pool",
	},
	{
		Action:  "ac004",
		Backoff: plan.NewBackoff(24*time.Minute, 3*time.Minute),
		Comment: "check worker count",
	},
	{
		Action:  "ac008",
		Backoff: plan.NewBackoff(10*time.Second, 2*time.Second),
		Comment: "delete cluster CRs",
	},
	{
		Action:  "ac009",
		Backoff: plan.NewBackoff(90*time.Minute, 9*time.Minute),
		Comment: "check CRs deleted",
	},
}

Plan describes in which order and with which tolerance to execute actions of this cluster scope.

Functions

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

Types

type Executor

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

func NewExecutor

func NewExecutor(config ExecutorConfig) (*Executor, error)

func (*Executor) Execute

func (e *Executor) Execute(ctx context.Context) error

type ExecutorConfig

type ExecutorConfig struct {
	Clients *action.Clients
	Command *cobra.Command
	Logger  micrologger.Logger
}

type Explainer

type Explainer struct {
}

func NewExplainer

func NewExplainer(config ExplainerConfig) (*Explainer, error)

func (*Explainer) Explain

func (e *Explainer) Explain(ctx context.Context) (string, error)

type ExplainerConfig

type ExplainerConfig struct {
}

Jump to

Keyboard shortcuts

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