getPodDestructionProcessors method
Returns a copy of all registered destruction-aware pod processors.
This method provides safe access to the destruction-aware processors list by returning a defensive copy to prevent external modification.
Returns:
- A list of PodDestructionProcessor instances
Example:
final processors = factory.getPodDestructionProcessors();
for (final processor in processors) {
await processor.postProcessBeforeDestruction(pod, podName);
}
Implementation
@protected
List<PodDestructionProcessor> getPodDestructionProcessors() => _destructionPodProcessors.toList();