agent

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2022 License: Apache-2.0 Imports: 38 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 string,
	kubeClient *kubernetes.Clientset,
	craneClient *craneclientset.Clientset,
	podInformer coreinformers.PodInformer,
	nodeInformer coreinformers.NodeInformer,
	nepInformer v1alpha1.NodeQOSEnsurancePolicyInformer,
	actionInformer v1alpha1.AvoidanceActionInformer,
	tspInformer predictionv1.TimeSeriesPredictionInformer,
	nodeResourceReserved map[string]string,
	ifaces []string,
	healthCheck *metrics.HealthCheck,
	CollectInterval time.Duration,
) (*Agent, error)

func (*Agent) CreateNodeResourceTsp added in v0.5.0

func (a *Agent) CreateNodeResourceTsp() (string, error)

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