recommendation

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Finish added in v0.1.2

Finish attempts to validate the requested changes.

Types

type ContainerResourcesOptions

type ContainerResourcesOptions struct {
	Selector          string
	Interval          time.Duration
	TargetUtilization map[string]string
	Tolerance         map[string]string
	BoundsLimitsMax   map[string]string
	BoundsLimitsMin   map[string]string
	BoundsRequestsMax map[string]string
	BoundsRequestsMin map[string]string
}

ContainerResourcesOptions contains options for building the recommender configuration for optimizing container resources.

func (*ContainerResourcesOptions) AddFlags

func (opts *ContainerResourcesOptions) AddFlags(cmd *cobra.Command)

func (*ContainerResourcesOptions) Apply

func (opts *ContainerResourcesOptions) Apply(configuration *[]applications.Configuration)

type DeployConfigurationOptions

type DeployConfigurationOptions struct {
	Mode                   string
	Interval               time.Duration
	MaxRecommendationRatio map[string]string
	Clusters               []string
}

func (*DeployConfigurationOptions) AddFlags

func (opts *DeployConfigurationOptions) AddFlags(cmd *cobra.Command)

func (*DeployConfigurationOptions) Apply

func (opts *DeployConfigurationOptions) Apply(deployConfiguration **applications.DeployConfiguration)

type Error added in v0.1.2

type Error struct {
	Message        string
	FixCommand     string
	FixFlag        string
	FixValidValues []string
}

func (*Error) Error added in v0.1.2

func (e *Error) Error() string

type ErrorList added in v0.1.2

type ErrorList []*Error

func (ErrorList) Err added in v0.1.2

func (el ErrorList) Err() error

func (ErrorList) Error added in v0.1.2

func (el ErrorList) Error() string

Jump to

Keyboard shortcuts

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