options

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateOptions

func ValidateOptions(options *ProbeMasterOptions) error

ValidateOptions validates YurtAppOptions

Types

type ProbeMasterOptions

type ProbeMasterOptions struct {
	MetricsAddr             string
	PprofAddr               string
	HealthProbeAddr         string
	EnableLeaderElection    bool
	EnablePprof             bool
	LeaderElectionNamespace string
	Namespace               string
	CreateDefaultPool       bool
	Version                 bool
	ProbeMasterListenAddr   string
}

func NewProbeMasterOptions

func NewProbeMasterOptions() *ProbeMasterOptions

NewProbeMasterOptions creates a new NewProbeMasterOptions with a default config.

func (*ProbeMasterOptions) AddFlags

func (o *ProbeMasterOptions) AddFlags(fs *pflag.FlagSet)

AddFlags returns flags for a specific yurthub by section name

Jump to

Keyboard shortcuts

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