@Override
    public DeploymentStatus buildStatus(V1StatefulSet statefulSet) {
        if (statefulSet == null) {
            return null;
        }
        ResourceStatus resourceStatus = status(statefulSet);
        DeploymentStatus.ServiceStatus serviceStatus = ResourceStatus.getServiceStatus(resourceStatus);
        if (resourceStatus.equals(ResourceStatus.PENDING)) {
            if (statefulSet.getSpec().getReplicas() <= statefulSet.getStatus().getReadyReplicas()){
                serviceStatus = DeploymentStatus.ServiceStatus.SCALING_DOWN;
            }
        }
        if (statefulSet.getSpec().getReplicas() == 0 && resourceStatus.equals(ResourceStatus.STABLE)){
            serviceStatus = DeploymentStatus.ServiceStatus.NOT_RUNNING;
        }
        return buildStatusFromMetadata(statefulSet.getMetadata(), serviceStatus);
    }
@param statefulSetList
@return list of service names from label of statefulset
deployer/deployer-services/src/main/java/io/hyscale/deployer/services/handler/impl/V1StatefulSetHandler.java