options

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DummyIfCIDR   = "169.254.0.0/16"
	ExclusiveCIDR = "169.254.31.0/24"
)

Variables

This section is empty.

Functions

func ValidateOptions

func ValidateOptions(options *YurtHubOptions) error

ValidateOptions validates YurtHubOptions

Types

type YurtHubOptions

type YurtHubOptions struct {
	ServerAddr                string
	YurtHubHost               string
	YurtHubPort               string
	YurtHubProxyPort          string
	YurtHubProxySecurePort    string
	GCFrequency               int
	CertMgrMode               string
	KubeletRootCAFilePath     string
	KubeletPairFilePath       string
	NodeName                  string
	NodePoolName              string
	LBMode                    string
	HeartbeatFailedRetry      int
	HeartbeatHealthyThreshold int
	HeartbeatTimeoutSeconds   int
	MaxRequestInFlight        int
	JoinToken                 string
	RootDir                   string
	Version                   bool
	EnableProfiling           bool
	EnableDummyIf             bool
	EnableIptables            bool
	HubAgentDummyIfIP         string
	HubAgentDummyIfName       string
	DiskCachePath             string
	AccessServerThroughHub    bool
	EnableResourceFilter      bool
	DisabledResourceFilters   []string
	WorkingMode               string
	KubeletHealthGracePeriod  time.Duration
}

YurtHubOptions is the main settings for the yurthub

func NewYurtHubOptions

func NewYurtHubOptions() *YurtHubOptions

NewYurtHubOptions creates a new YurtHubOptions with a default config.

func (*YurtHubOptions) AddFlags

func (o *YurtHubOptions) 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