class PodOnUnknownNodeGcController extends BaseGcController<V1Pod> {

    @VisibleForTesting
    boolean isPodOnUnknownNode(V1Pod pod, Set<String> knownNodeNames) {
        if (pod == null || pod.getSpec() == null) {
            return false;
        }

        String nodeName = pod.getSpec().getNodeName();
        return StringExt.isNotEmpty(nodeName) && !knownNodeNames.contains(nodeName);
    }

    @Inject public  PodOnUnknownNodeGcController(
            TitusRuntime titusRuntime,
            LocalScheduler scheduler,
            @Named(POD_ON_UNKNOWN_NODE_GC_CONTROLLER) FixedIntervalTokenBucketConfiguration tokenBucketConfiguration,
            @Named(POD_ON_UNKNOWN_NODE_GC_CONTROLLER) ControllerConfiguration controllerConfiguration,
            KubeApiFacade kubeApiFacade
    );

}