private boolean isDeletePodRequired(ApiClient apiClient, String name, String namespace) throws HyscaleException {
		V1PodHandler podHandler = (V1PodHandler) ResourceHandlers.getHandlerOf(ResourceKind.POD.getKind());
		List<V1Pod> v1PodList = podHandler.getBySelector(apiClient, getPodSelector(name), true, namespace);
		boolean isPodInErrorState = false;
		if (v1PodList != null && !v1PodList.isEmpty()) {
            isPodInErrorState = v1PodList.stream()
                    .anyMatch(each -> !K8sPodUtil.getAggregatedStatusOfContainersForPod(each)
                            .equalsIgnoreCase(K8SRuntimeConstants.POD_RUNING_STATE_CONDITION)
                            || !K8sPodUtil.checkForPodCondition(each, PodCondition.READY));
		}
		return isPodInErrorState;
	}
@param apiClient
@param name
@param namespace
@return true if pods needs to be deleted
@throws HyscaleException
deployer/deployer-services/src/main/java/io/hyscale/deployer/services/handler/impl/V1beta2StatefulSetHandler.java