mirror of
https://github.com/openfaas/faas.git
synced 2025-06-21 12:06:31 +00:00
Return labels in functions list endpoint
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
This commit is contained in:
@ -50,12 +50,15 @@ func MakeFunctionReader(metricsOptions metrics.MetricOptions, c client.ServiceAP
|
||||
}
|
||||
}
|
||||
|
||||
// Required (copy by value)
|
||||
labels := service.Spec.Annotations.Labels
|
||||
f := requests.Function{
|
||||
Name: service.Spec.Name,
|
||||
Image: service.Spec.TaskTemplate.ContainerSpec.Image,
|
||||
InvocationCount: 0,
|
||||
Replicas: *service.Spec.Mode.Replicated.Replicas,
|
||||
EnvProcess: envProcess,
|
||||
Labels: &labels,
|
||||
}
|
||||
|
||||
functions = append(functions, f)
|
||||
|
Reference in New Issue
Block a user