Class Reaper.TerminateAgentOnContainerTerminated
java.lang.Object
org.csanchez.jenkins.plugins.kubernetes.pod.retention.Reaper.TerminateAgentOnContainerTerminated
- All Implemented Interfaces:
ExtensionPoint
,Reaper.Listener
- Enclosing class:
- Reaper
@Extension
public static class Reaper.TerminateAgentOnContainerTerminated
extends Object
implements Reaper.Listener
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onEvent
(io.fabric8.kubernetes.client.Watcher.Action action, KubernetesSlave node, io.fabric8.kubernetes.api.model.Pod pod, Set<String> terminationReasons) Handle Pod event.
-
Constructor Details
-
TerminateAgentOnContainerTerminated
public TerminateAgentOnContainerTerminated()
-
-
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, InterruptedException Description copied from interface:Reaper.Listener
Handle Pod event.- Specified by:
onEvent
in interfaceReaper.Listener
- Parameters:
action
- the kind of event that happened to the referred podnode
- The affected nodepod
- The affected podterminationReasons
- Set of termination reasons- Throws:
IOException
InterruptedException
-