@Override
    public List<ReplicaInfo> getReplicas(K8sAuthorisation authConfig, String appName, String serviceName, String namespace,
                                         boolean all) throws HyscaleException {
        return getReplicasBySelector(authConfig, namespace, ResourceSelectorUtil.getServiceSelector(appName, serviceName));
    }
Get Replica info for pods

@param authConfig cluster auth configuration
@param all        if disabled, return replica info for all pods fetched based on selector
                  if enabled,
                  1. If owner kind for pods is different, warn user and return replica info for all pods
                  2. If owner kind is {@link ResourceKind #DEPLOYMENT} or {@link ResourceKind #REPLICA_SET},
                  Get Revision from deployment, get replicas set with this revision,
                  filter pods based on pod-template-hash from replica set
                  return replica info for filtered pods
                  3. Else return replica info for all pods
deployer/deployer-services/src/main/java/io/hyscale/deployer/services/deployer/impl/KubernetesDeployer.java