code: def refresh_leader_status(self, instance):
          
          if not self.leader_candidate:
              return
  
          leader_status = self.kubeutil.is_leader
          self.kubeutil.refresh_leader()
  
          # nothing changed, no-op
          if leader_status == self.kubeutil.is_leader:
              return
          # else, reset the event collection config
          else:
              self.log.info("Leader status changed, updating event collection config...")
              self._configure_event_collection(instance)
docs: calls kubeutil.refresh_leader and compares the resulting
          leader status with the previous one.
          If it changed, update the event collection logic