validator

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AreaCluster = "cluster"
	AreaKubelet = "kubelet"
)
View Source
const (
	ComponentConfiguration   = "configuration"
	ComponentFeatureGates    = "feature gates"
	ComponentCPUManager      = "CPU manager"
	ComponentTopologyManager = "topology manager"
)
View Source
const (
	// these are the recommended values
	CPUManagerReconcilePeriodMin = 1 * time.Second
	CPUManagerReconcilePeriodMax = 10 * time.Second
)
View Source
const (
	ExpectedPodResourcesFeatureGate = "KubeletPodResourcesGetAllocatable"
	ExpectedCPUManagerPolicy        = "static"
	ExpectedTopologyManagerPolicy   = "single-numa-node"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ValidationResult

type ValidationResult struct {
	Node      string `json:"node"`
	Area      string `json:"area"`
	Component string `json:"component"`
	Setting   string `json:"setting"`
	Expected  string `json:"expected"`
	Detected  string `json:"detected"`
}

func (ValidationResult) String

func (vr ValidationResult) String() string

type Validator

type Validator struct {
	Log *log.Logger
}

func (Validator) ValidateClusterConfig

func (vd Validator) ValidateClusterConfig(nodes []corev1.Node) ([]ValidationResult, error)

func (Validator) ValidateNodeKubeletConfig

func (vd Validator) ValidateNodeKubeletConfig(nodeName string, kubeletConf *kubeletconfigv1beta1.KubeletConfiguration) []ValidationResult

Jump to

Keyboard shortcuts

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