code: func (el *EndpointsLock) RecordEvent(s string) {
  	if el.LockConfig.EventRecorder == nil {
  		return
  	}
  	events := fmt.Sprintf("%v %v", el.LockConfig.Identity, s)
  	el.LockConfig.EventRecorder.Eventf(&v1.Endpoints{ObjectMeta: el.e.ObjectMeta}, v1.EventTypeNormal, "LeaderElection", events)
  }
docs: // RecordEvent in leader election while adding meta-data