leaderelection

package
v1.0.10-0...-8f444ab Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 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 Instana 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