manager

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2021 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name      = "hybridnet-manager"
	Namespace = "kube-system"

	LeaderElectionUserAgent = "leader-election"
	HybridnetUserAgent      = "hybridnet"

	DefaultLeaseDuration = 15 * time.Second
	DefaultRenewDeadline = 10 * time.Second
	DefaultRetryPeriod   = 2 * time.Second
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	KubeConfig *rest.Config

	KubeClient           kubernetes.Interface
	HybridnetClient      versioned.Interface
	LeaderElectionClient kubernetes.Interface

	InformerFactory          informers.SharedInformerFactory
	HybridnetInformerFactory externalversions.SharedInformerFactory

	StopEverything <-chan struct{}
	// contains filtered or unexported fields
}

func NewManager

func NewManager() (*Manager, error)

func (*Manager) Run

func (m *Manager) Run(ctx context.Context)

func (*Manager) RunOrDie

func (m *Manager) RunOrDie(ctx context.Context) error

Jump to

Keyboard shortcuts

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