code: func scaleFromRC(rc *api.ReplicationController) *autoscaling.Scale {
  	return &autoscaling.Scale{
  		ObjectMeta: metav1.ObjectMeta{
  			Name:              rc.Name,
  			Namespace:         rc.Namespace,
  			UID:               rc.UID,
  			ResourceVersion:   rc.ResourceVersion,
  			CreationTimestamp: rc.CreationTimestamp,
  		},
  		Spec: autoscaling.ScaleSpec{
  			Replicas: rc.Spec.Replicas,
  		},
  		Status: autoscaling.ScaleStatus{
  			Replicas: rc.Status.Replicas,
  			Selector: labels.SelectorFromSet(rc.Spec.Selector).String(),
  		},
  	}
  }
docs: // scaleFromRC returns a scale subresource for a replication controller.