options

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// FromCluster represent an existing cluster without pods
	FromCluster = "Cluster"
	// FromSnapshot represent a snapshot
	FromSnapshot = "Snapshot"

	// ExitWhenAllScheduled means exit when all pods have been scheduled once
	ExitWhenAllScheduled = "AllScheduled"
	// ExitWhenAllSucceed means exit when all pods have been scheduled successfully
	ExitWhenAllSucceed = "AllSucceed"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type SchedulerSimulationConfig

type SchedulerSimulationConfig struct {
	Options  *SchedulerSimulationOptions
	InitObjs []runtime.Object
}

func NewSchedulerSimulationConfig

func NewSchedulerSimulationConfig(option *SchedulerSimulationOptions) *SchedulerSimulationConfig

type SchedulerSimulationOptions

type SchedulerSimulationOptions struct {
	cmds.Options
	// Cluster, Snapshot
	SourceFrom               string
	ExitCondition            string
	IgnorePodsOnExcludeNodes bool
}

func NewSchedulerSimulationOptions

func NewSchedulerSimulationOptions() *SchedulerSimulationOptions

func (*SchedulerSimulationOptions) AddFlags

func (s *SchedulerSimulationOptions) AddFlags(fs *pflag.FlagSet)

type Snapshot

type Snapshot struct {
	// key is gk
	Objects map[string][]runtime.Object `json:"objects"`
}

Jump to

Keyboard shortcuts

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