app

package
v0.8.5 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2023 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommand

func NewCommand(ctx context.Context) *cobra.Command

func Run

func Run(ctx context.Context, opt *Options) error

func StartManager

func StartManager(ctx context.Context, opt *Options) error

StartManager will block.

Types

type Options

type Options struct {
	LeaderElection componentbaseconfig.LeaderElectionConfiguration
	// KubeAPIQPS is the QPS to use while talking with kubean-apiserver.
	BindAddress string
	// SecurePort is the port that the server serves at.
	SecurePort int

	KubeAPIQPS float32
	// KubeAPIBurst is the burst to allow while talking with kubean-apiserver.
	KubeAPIBurst int
}

func NewOptions

func NewOptions() *Options

func (*Options) AddFlags

func (o *Options) AddFlags(flags *pflag.FlagSet)

func (*Options) Validate

func (o *Options) Validate() field.ErrorList

Jump to

Keyboard shortcuts

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