agent

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 License: Apache-2.0, BSD-2-Clause Imports: 44 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent struct {
	// contains filtered or unexported fields
}

func NewAgent

func NewAgent(ctx context.Context,
	nodeName, runtimeEndpoint, cgroupDriver, sysPath, kubeletRootPath string,
	kubeClient kubernetes.Interface,
	craneClient craneclientset.Interface,
	podInformer coreinformers.PodInformer,
	nodeInformer coreinformers.NodeInformer,
	nodeQOSInformer v1alpha1.NodeQOSInformer,
	podQOSInformer v1alpha1.PodQOSInformer,
	actionInformer v1alpha1.AvoidanceActionInformer,
	tspInformer predictionv1.TimeSeriesPredictionInformer,
	nrtInformer topologyinformer.NodeResourceTopologyInformer,
	nodeResourceReserved map[string]string,
	ifaces []string,
	healthCheck *metrics.HealthCheck,
	collectInterval time.Duration,
	executeExcess string,
	cpuManagerReconcilePeriod time.Duration,
	defaultCPUPolicy string,
) (*Agent, error)

func (*Agent) CreateNodeResourceTopology added in v0.8.0

func (a *Agent) CreateNodeResourceTopology(sysPath string) error

func (*Agent) CreateNodeResourceTsp added in v0.5.0

func (a *Agent) CreateNodeResourceTsp() string

func (*Agent) DeleteNodeResourceTsp added in v0.5.0

func (a *Agent) DeleteNodeResourceTsp() error

func (*Agent) GenerateNodeResourceTspName added in v0.5.0

func (a *Agent) GenerateNodeResourceTspName() string

func (*Agent) Run

func (a *Agent) Run(healthCheck *metrics.HealthCheck, enableProfiling bool, bindAddr string)

Jump to

Keyboard shortcuts

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