Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Graceful ¶
type Graceful struct {
	// contains filtered or unexported fields
}
    Graceful implements the Runnable interface and handles graceful shutdown of the component. This is useful for components that don't stop immediately.
func NewGraceful ¶
func NewGraceful(run RunCall, stop StopCall, requireLeaderElection bool, wg *sync.WaitGroup, logger logr.Logger) *Graceful
NewGraceful creates a new graceful shutdown runnable. logger is optional. Pass nil for the default logger.
func (*Graceful) NeedLeaderElection ¶
NeedLeaderElection implements the LeaderElectionRunnable interface, which helps the controller manager decide when to start the component.
 Click to show internal directories. 
   Click to hide internal directories.