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
}
Click to show internal directories.
Click to hide internal directories.