 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Overview ¶
Package leaderelection contains a constructors for a leader election resource lock
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewResourceLock ¶
func NewResourceLock(config *rest.Config, recorderProvider recorder.Provider, options Options) (resourcelock.Interface, error)
NewResourceLock creates a new config map resource lock for use in a leader election loop
Types ¶
type Options ¶
type Options struct {
	// LeaderElection determines whether or not to use leader election when
	// starting the manager.
	LeaderElection bool
	// LeaderElectionNamespace determines the namespace in which the leader
	// election configmap will be created.
	LeaderElectionNamespace string
	// LeaderElectionID determines the name of the configmap that leader election
	// will use for holding the leader lock.
	LeaderElectionID string
}
    Options provides the required configuration to create a new resource lock
 Click to show internal directories. 
   Click to hide internal directories.