code: func (le *LeaderElector) release() bool {
  	if !le.IsLeader() {
  		return true
  	}
  	leaderElectionRecord := rl.LeaderElectionRecord{
  		LeaderTransitions: le.observedRecord.LeaderTransitions,
  	}
  	if err := le.config.Lock.Update(leaderElectionRecord); err != nil {
  		klog.Errorf("Failed to release lock: %v", err)
  		return false
  	}
  	le.observedRecord = leaderElectionRecord
  	le.observedTime = le.clock.Now()
  	return true
  }
docs: // release attempts to release the leader lease if we have acquired it.