nfdmaster

package
v0.13.2 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2023 License: Apache-2.0 Imports: 39 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Annotations

type Annotations map[string]string

Annotations are used for NFD-related node metadata

type Args

type Args struct {
	CaFile               string
	CertFile             string
	ConfigFile           string
	Instance             string
	KeyFile              string
	Kubeconfig           string
	CrdController        bool
	EnableNodeFeatureApi bool
	Port                 int
	Prune                bool
	VerifyNodeName       bool
	Options              string

	Overrides ConfigOverrideArgs
}

Args holds command line arguments

type ConfigOverrideArgs added in v0.13.0

type ConfigOverrideArgs struct {
	DenyLabelNs    *utils.StringSetVal
	ExtraLabelNs   *utils.StringSetVal
	LabelWhiteList *utils.RegexpVal
	ResourceLabels *utils.StringSetVal
	EnableTaints   *bool
	NoPublish      *bool
}

ConfigOverrideArgs are args that override config file options

type ExtendedResources added in v0.6.0

type ExtendedResources map[string]string

ExtendedResources are k8s extended resources which are created from discovered features.

type Labels

type Labels map[string]string

Labels are a Kubernetes representation of discovered features.

type NFDConfig added in v0.13.0

type NFDConfig struct {
	DenyLabelNs    utils.StringSetVal
	ExtraLabelNs   utils.StringSetVal
	LabelWhiteList utils.RegexpVal
	NoPublish      bool
	ResourceLabels utils.StringSetVal
	EnableTaints   bool
}

NFDConfig contains the configuration settings of NfdMaster.

type NfdMaster

type NfdMaster interface {
	Run() error
	Stop()
	WaitForReady(time.Duration) bool
}

func NewNfdMaster

func NewNfdMaster(args *Args) (NfdMaster, error)

NewNfdMaster creates a new NfdMaster server instance.

Jump to

Keyboard shortcuts

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