options

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2022 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 *YurtAppOptions) error

ValidateOptions validates YurtAppOptions

Types

type YurtAppOptions

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

YurtAppOptions is the main settings for the yurtapp-manger

func NewYurtAppOptions

func NewYurtAppOptions() *YurtAppOptions

NewYurtAppOptions creates a new YurtAppOptions with a default config.

func (*YurtAppOptions) AddFlags

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