nfdworker

package
v0.16.6 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: Apache-2.0 Imports: 46 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Args

type Args struct {
	CaFile               string
	CertFile             string
	ConfigFile           string
	EnableNodeFeatureApi bool
	KeyFile              string
	Klog                 map[string]*utils.KlogFlagVal
	Kubeconfig           string
	Oneshot              bool
	Options              string
	Server               string
	ServerNameOverride   string
	MetricsPort          int
	GrpcHealthPort       int

	Overrides ConfigOverrideArgs
}

Args are the command line arguments of NfdWorker.

type ConfigOverrideArgs added in v0.8.0

type ConfigOverrideArgs struct {
	NoPublish *bool

	FeatureSources *utils.StringSliceVal
	LabelSources   *utils.StringSliceVal
}

ConfigOverrideArgs are args that override config file options

type Labels

type Labels map[string]string

Labels are a Kubernetes representation of discovered features.

type NFDConfig

type NFDConfig struct {
	Core    coreConfig
	Sources sourcesConfig
}

NFDConfig contains the configuration settings of NfdWorker.

type NfdWorker

type NfdWorker interface {
	Run() error
	Stop()
}

NfdWorker is the interface for nfd-worker daemon

func NewNfdWorker

func NewNfdWorker(opts ...NfdWorkerOption) (NfdWorker, error)

NewNfdWorker creates new NfdWorker instance.

type NfdWorkerOption added in v0.15.6

type NfdWorkerOption interface {
	// contains filtered or unexported methods
}

NfdWorkerOption sets properties of the NfdWorker instance.

func WithArgs added in v0.15.6

func WithArgs(args *Args) NfdWorkerOption

WithArgs is used for passing settings from command line arguments.

func WithKubernetesClient added in v0.15.6

func WithKubernetesClient(cli k8sclient.Interface) NfdWorkerOption

WithKuberneteClient forces to use the given kubernetes client, without initializing one from kubeconfig.

Jump to

Keyboard shortcuts

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