nfdmaster

package
v0.0.0-...-22d9994 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: Apache-2.0 Imports: 48 Imported by: 0

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
	Klog                 map[string]*utils.KlogFlagVal
	Kubeconfig           string
	CrdController        bool
	EnableNodeFeatureApi bool
	Port                 int
	Prune                bool
	VerifyNodeName       bool
	Options              string
	EnableLeaderElection bool
	MetricsPort          int

	Overrides ConfigOverrideArgs
}

Args holds command line arguments

type ConfigOverrideArgs

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

ConfigOverrideArgs are args that override config file options

type ExtendedResources

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 LeaderElectionConfig

type LeaderElectionConfig struct {
	LeaseDuration utils.DurationVal
	RenewDeadline utils.DurationVal
	RetryPeriod   utils.DurationVal
}

LeaderElectionConfig contains the configuration for leader election

type NFDConfig

type NFDConfig struct {
	DenyLabelNs       utils.StringSetVal
	ExtraLabelNs      utils.StringSetVal
	LabelWhiteList    utils.RegexpVal
	NoPublish         bool
	ResourceLabels    utils.StringSetVal
	EnableTaints      bool
	ResyncPeriod      utils.DurationVal
	LeaderElection    LeaderElectionConfig
	NfdApiParallelism int
	Klog              klogutils.KlogConfigOpts
}

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