status

package
v0.0.0-...-c8e4b7a Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2020 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewElection

func NewElection(electionID,
	id,
	namespace string,
	ttl time.Duration,
	callback func(leader string),
	c client.Interface) (*leaderelection.LeaderElector, error)

NewElection creates an election. 'namespace'/'election' should be an existing Kubernetes Service 'id' is the id if this leader, should be unique.

Types

type Config

type Config struct {
	Client         clientset.Interface
	PublishService string
	IngressLister  store.IngressLister
	ElectionID     string

	DefaultIngressClass string
	IngressClass        string
}

Config ...

type Sync

type Sync interface {
	Run(stopCh <-chan struct{})
	Shutdown()
}

Sync ...

func NewStatusSyncer

func NewStatusSyncer(config Config) Sync

NewStatusSyncer returns a new Sync instance

Directories

Path Synopsis
Package leaderelection implements leader election of a set of endpoints.
Package leaderelection implements leader election of a set of endpoints.

Jump to

Keyboard shortcuts

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