Documentation
¶
Index ¶
- type AllocationLimits
- type Allocations
- type Code
- type Config
- func (c *Config) CPUResourceLimits() Allocations
- func (c *Config) LinterLevel() int
- func (c *Config) MEMResourceLimits() Allocations
- func (c *Config) NodeCPULimit() float64
- func (c *Config) NodeMEMLimit() float64
- func (c *Config) PodCPULimit() float64
- func (c *Config) PodMEMLimit() float64
- func (c *Config) RestartsLimit() int
- func (c *Config) Sections() []string
- type Excludes
- type Exclusion
- type Exclusions
- type Flags
- type Glossary
- type ID
- type Level
- type Limits
- type Node
- type Pod
- type Popeye
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AllocationLimits ¶ added in v0.3.0
type AllocationLimits struct { CPU Allocations `yaml:"cpu"` MEM Allocations `yaml:"memory"` }
AllocationLimits tracks limit thresholds cpu and memory thresholds.
type Allocations ¶ added in v0.3.0
type Allocations struct { UnderPerc int `yaml:"underPercUtilization"` OverPerc int `yanl:"overPercUtilization"` }
Allocations track under/over allocation limits.
type Config ¶
Config tracks Popeye configuration options.
func (*Config) CPUResourceLimits ¶ added in v0.3.0
func (c *Config) CPUResourceLimits() Allocations
CPUResourceLimits returns memory over/under allocation thresholds.
func (*Config) LinterLevel ¶ added in v0.2.0
LinterLevel returns the current lint level.
func (*Config) MEMResourceLimits ¶ added in v0.3.0
func (c *Config) MEMResourceLimits() Allocations
MEMResourceLimits returns memory over/under allocation thresholds.
func (*Config) NodeCPULimit ¶
NodeCPULimit returns the node cpu threshold if set otherwise the default.
func (*Config) NodeMEMLimit ¶
NodeMEMLimit returns the pod mem threshold if set otherwise the default.
func (*Config) PodCPULimit ¶
PodCPULimit returns the pod cpu threshold if set otherwise the default.
func (*Config) PodMEMLimit ¶
PodMEMLimit returns the pod mem threshold if set otherwise the default.
func (*Config) RestartsLimit ¶
RestartsLimit returns pod restarts limit.
type Excludes ¶
type Excludes map[string]Exclusions
Excludes represents a set of resources that should be excluded from the sanitizer.
func (Excludes) ExcludeContainer ¶ added in v0.8.9
ExcludeContainer checks if a given container should be excluded.
func (Excludes) ExcludeFQN ¶ added in v0.6.0
ExcludeFQN checks if a given named resource should be excluded.
type Exclusions ¶ added in v0.6.0
type Exclusions []Exclusion
Exclusions represents a collection of excludes items. This can be a straight string match of regex using an rx: prefix.
type Flags ¶ added in v0.3.4
type Flags struct { *genericclioptions.ConfigFlags LintLevel *string Output *string ClearScreen *bool Save *bool OutputFile *string S3Bucket *string CheckOverAllocs *bool AllNamespaces *bool Spinach *string Sections *[]string PushGatewayAddress *string InClusterName *string StandAlone bool ActiveNamespace *string }
Flags represents Popeye CLI flags.
func (*Flags) OutputFormat ¶ added in v0.3.4
OutputFormat returns the report output format.
type Level ¶
type Level int
Level tracks lint check level.
func ToIssueLevel ¶ added in v0.3.4
ToIssueLevel convert a string to a issue level.
type Pod ¶
type Pod struct { Restarts int `yaml:"restarts"` Limits Limits `yaml:"limits"` Excludes `yaml:"exclude"` }
Pod tracks pod configurations.