nodelabeller

package
v0.29.0 Latest Latest
Warning

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

Go to latest
Published: May 5, 2020 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CPU

type CPU struct {
	Mode []Mode `xml:"mode"`
}

CPU represents slice of cpu modes

type Config

type Config struct {
	ObsoleteCPUs []string `yaml:"obsoleteCPUs"`
	MinCPU       string   `yaml:"minCPU"`
}

Config holds data about obsolete cpus and minimal baseline cpus

type Feature

type Feature struct {
	Name string `xml:"name,attr"`
}

type FeatureModel

type FeatureModel struct {
	Model Features `xml:"model"`
}

Structures needed to parse cpu features

type Features

type Features struct {
	Features []Feature `xml:"feature"`
}

type HostDomCapabilities

type HostDomCapabilities struct {
	CPU CPU `xml:"cpu"`
}

HostDomCapabilities represents structure for parsing output of virsh capabilities

type Mode

type Mode struct {
	Vendor Vendor  `xml:"vendor"`
	Model  []Model `xml:"model"`
}

Mode represents slice of cpu models

type Model

type Model struct {
	Name   string `xml:",chardata"`
	Usable string `xml:"usable,attr"`
}

Model represents cpu model

type NodeLabeller

type NodeLabeller struct {
	Queue workqueue.RateLimitingInterface
	// contains filtered or unexported fields
}

NodeLabeller struct holds informations needed to run node-labeller

func NewNodeLabeller

func NewNodeLabeller(kvmController *device_manager.DeviceController, nodeInformer, configMapInformer cache.SharedIndexInformer, clientset kubecli.KubevirtClient, host, namespace string) *NodeLabeller

func (*NodeLabeller) Execute

func (n *NodeLabeller) Execute() bool

func (*NodeLabeller) Run

func (n *NodeLabeller) Run(threadiness int, stop chan struct{})

Run runs node-labeller

type Vendor

type Vendor struct {
	Name string `xml:",chardata"`
}

Vendor represents vendor of host CPU

Jump to

Keyboard shortcuts

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