public static ReplicaInfo getReplicaInfo(V1Pod pod) {
        if (pod == null) {
            return null;
        }
        ReplicaInfo replicaInfo = new ReplicaInfo();
        replicaInfo.setName(pod.getMetadata().getName());
        replicaInfo.setAge(pod.getStatus().getStartTime());
        replicaInfo.setStatus(K8sPodUtil.getAggregatedStatusOfContainersForPod(pod));

        return replicaInfo;
    }
@param pod
@return {@link ReplicaInfo} for the pod
deployer/deployer-services/src/main/java/io/hyscale/deployer/services/util/K8sReplicaUtil.java