Interface Reaper.Listener
- All Superinterfaces:
ExtensionPoint
- All Known Implementing Classes:
Reaper.RemoveAgentOnPodDeleted,Reaper.TerminateAgentOnContainerTerminated,Reaper.TerminateAgentOnImagePullBackOff,Reaper.TerminateAgentOnPodFailed
- Enclosing class:
- Reaper
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
Modifier and TypeMethodDescriptionvoidonEvent(io.fabric8.kubernetes.client.Watcher.Action action, KubernetesSlave node, io.fabric8.kubernetes.api.model.Pod pod, Set<String> terminationReasons) Handle Pod event.
-
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 podnode- The affected nodepod- The affected podterminationReasons- Set of termination reasons- Throws:
IOExceptionInterruptedException
-