Move label query to deployment.labels
When querying labels we were returning the selector labels instead
of the deployment labels. This change corrects the regression
which was introduced in 0.5.3.
@@ -89,7 +89,7 @@ func readFunction(item v1beta1.Deployment) *requests.Function {
replicas = uint64(*item.Spec.Replicas)
}
- labels := item.Spec.Template.Labels
+ labels := item.Labels
function := requests.Function{
Name: item.Name,
Replicas: replicas,
