mirror of
https://github.com/openfaas/faas.git
synced 2025-06-18 12:06:37 +00:00
Label support for Update handler
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
This commit is contained in:
@ -75,7 +75,7 @@ func makeSpec(request *requests.CreateFunctionRequest, maxRestarts uint64, resta
|
||||
}
|
||||
labels := map[string]string{"function": "true"}
|
||||
if request.Labels != nil {
|
||||
for k, v := range request.Labels {
|
||||
for k, v := range *request.Labels {
|
||||
labels[k] = v
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user