leaderelection

package
v0.0.0-...-a613b17 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LeaderElector

type LeaderElector struct {
	// contains filtered or unexported fields
}

func NewLeaderElection

func NewLeaderElection(client client.Client, namespacedName types.NamespacedName) *LeaderElector

func (*LeaderElector) CancelLeaderElection

func (l *LeaderElector) CancelLeaderElection()

func (*LeaderElector) IsLeaderElectionScheduled

func (l *LeaderElector) IsLeaderElectionScheduled() bool

func (*LeaderElector) StartCoordination

func (l *LeaderElector) StartCoordination(agentNameSpace string) error

StartCoordination starts scheduling of leader elector coordination between VC Agents.

Agent Coordination works by requesting the "resources" for which an Agent would be leader. This could be one or more. Different Agents might request similar or different "resources".

The Operator should, for every requested resource, appoint one specific Agent pod as leader by calling the /coordination/assigned endpoint.

type LeadershipStatus

type LeadershipStatus struct {
	Status map[string]*coordination_api.CoordinationRecord
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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