Interface Reaper.Listener

All Superinterfaces:
ExtensionPoint
All Known Implementing Classes:
Reaper.RemoveAgentOnPodDeleted, Reaper.TerminateAgentOnContainerTerminated, Reaper.TerminateAgentOnImagePullBackOff, Reaper.TerminateAgentOnPodFailed
Enclosing class:
Reaper

public static interface Reaper.Listener extends ExtensionPoint
Listener called when a Kubernetes event related to a Kubernetes agent happens.
  • Method Details

    • onEvent

      void onEvent(@NonNull io.fabric8.kubernetes.client.Watcher.Action action, @NonNull KubernetesSlave node, @NonNull io.fabric8.kubernetes.api.model.Pod pod, @NonNull Set<String> terminationReasons) throws IOException, InterruptedException
      Handle Pod event.
      Parameters:
      action - the kind of event that happened to the referred pod
      node - The affected node
      pod - The affected pod
      terminationReasons - Set of termination reasons
      Throws:
      IOException
      InterruptedException