nfdmaster

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2022 License: Apache-2.0 Imports: 37 Imported by: 5

Documentation

Index

Constants

View Source
const (
	// FeatureLabelNs is the namespace for feature labels
	FeatureLabelNs = "feature.node.kubernetes.io"

	// FeatureLabelSubNsSuffix is the suffix for allowed feature label sub-namespaces
	FeatureLabelSubNsSuffix = "." + FeatureLabelNs

	// ProfileLabelNs is the namespace for profile labels
	ProfileLabelNs = "profile.node.kubernetes.io"

	// ProfileLabelSubNsSuffix is the suffix for allowed profile label sub-namespaces
	ProfileLabelSubNsSuffix = "." + ProfileLabelNs

	// AnnotationNsBase namespace for all NFD-related annotations
	AnnotationNsBase = "nfd.node.kubernetes.io"
)

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
	ExtraLabelNs           utils.StringSetVal
	Instance               string
	KeyFile                string
	Kubeconfig             string
	LabelWhiteList         utils.RegexpVal
	FeatureRulesController bool
	NoPublish              bool
	Port                   int
	Prune                  bool
	VerifyNodeName         bool
	ResourceLabels         utils.StringSetVal
}

Args holds command line arguments

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 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