options

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NodeProblemDetectorOptions

type NodeProblemDetectorOptions struct {

	// SystemLogMonitorConfigPaths specifies the list of paths to system log monitor configuration
	// files.
	SystemLogMonitorConfigPaths []string
	// CustomPluginMonitorConfigPaths specifies the list of paths to custom plugin monitor configuration
	// files.
	CustomPluginMonitorConfigPaths []string
	// ApiServerOverride is the custom URI used to connect to Kubernetes ApiServer.
	ApiServerOverride string
	// PrintVersion is the flag determining whether version information is printed.
	PrintVersion bool
	// HostnameOverride specifies custom node name used to override hostname.
	HostnameOverride string
	// ServerPort is the port to bind the node problem detector server. Use 0 to disable.
	ServerPort int
	// ServerAddress is the address to bind the node problem detector server.
	ServerAddress string

	// NodeName is the node name used to communicate with Kubernetes ApiServer.
	NodeName string
}

NodeProblemDetectorOptions contains node problem detector command line and application options.

func NewNodeProblemDetectorOptions

func NewNodeProblemDetectorOptions() *NodeProblemDetectorOptions

func (*NodeProblemDetectorOptions) AddFlags

func (npdo *NodeProblemDetectorOptions) AddFlags(fs *pflag.FlagSet)

AddFlags adds node problem detector command line options to pflag.

func (*NodeProblemDetectorOptions) SetNodeNameOrDie

func (npdo *NodeProblemDetectorOptions) SetNodeNameOrDie()

SetNodeNameOrDie sets `NodeName` field with valid value.

func (*NodeProblemDetectorOptions) ValidOrDie

func (npdo *NodeProblemDetectorOptions) ValidOrDie()

ValidOrDie validates node problem detector command line options.

Jump to

Keyboard shortcuts

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