app

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RunOptions

type RunOptions struct {
	// KubeconfigPath is kubeconfig path for running out of cluster
	KubeconfigPath string
	// MasterUrl only used for running out of cluster
	MasterUrl string
	// QOS of client-go
	QPS int
	// Burst of client-go
	Burst int
	// Resync period
	Resync time.Duration
	// ElectionName is name to identify
	ElectionName string
	// ElectionNamespace
	ElectionNamespace string
	// ElectionResourceLock can be endpoint, lease and so on
	ElectionResourceLock string
	// ShowVersion shows version if true
	ShowVersion bool
	// MinPort of dynamic port allocation
	MinPort int
	// MaxPort of dynamic port allocation
	MaxPort int
}

RunOptions describes the controller running options

func NewServerRunOptions

func NewServerRunOptions() *RunOptions

NewServerRunOptions initialize the running options

func (*RunOptions) NewConfig

func (s *RunOptions) NewConfig() (*rest.Config, error)

NewConfig builds kube config

Jump to

Keyboard shortcuts

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