Class Reaper.RemoveAgentOnPodDeleted

java.lang.Object
org.csanchez.jenkins.plugins.kubernetes.pod.retention.Reaper.RemoveAgentOnPodDeleted
All Implemented Interfaces:
ExtensionPoint, Reaper.Listener
Enclosing class:
Reaper

@Extension public static class Reaper.RemoveAgentOnPodDeleted extends Object implements Reaper.Listener
  • Constructor Details

    • RemoveAgentOnPodDeleted

      public RemoveAgentOnPodDeleted()
  • Method Details

    • onEvent

      public 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
      Description copied from interface: Reaper.Listener
      Handle Pod event.
      Specified by:
      onEvent in interface Reaper.Listener
      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