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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onEvent(io.fabric8.kubernetes.client.Watcher.Action action, KubernetesSlave node, io.fabric8.kubernetes.api.model.Pod pod, Set<String> terminationReasons)
Handle Pod event.
-
-
-
Method Detail
-
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 podnode
- The affected nodepod
- The affected podterminationReasons
- Set of termination reasons- Throws:
IOException
InterruptedException
-
-