By(fmt.Sprintf("Replicas not match for %q/%q/%q: expect: >= %v, actual: %v",cluster.name,namespace,replicaSetName,expect[cluster.name],*rs.Spec.Replicas))
returnfalse,nil
}
specReplicas+=*rs.Spec.Replicas
statusReplicas+=rs.Status.Replicas
}
}
if*frs.Spec.Replicas==0&&frs.Status.Replicas!=0{
By(fmt.Sprintf("ReplicaSet %q/%q with zero replicas should match the status as no overflow happens: expected: 0, actual: %v",namespace,replicaSetName,frs.Status.Replicas))