recommendation

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 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.

func LikelyInvalid added in v0.1.7

func LikelyInvalid(resourceName string, val *api.NumberOrString) error

LikelyInvalid returns true if the value is likely to be invalid.

func QuantityLess added in v0.1.7

func QuantityLess(a, b *api.NumberOrString) bool

QuantityLess returns true if 'a' is strictly less than 'b'.

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
	BoundsTargetUtilizationMax map[string]int64
	BoundsTargetUtilizationMin map[string]int64
}

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