Label support for Update handler

Signed-off-by: Alex Ellis <alexellis2@gmail.com>
This commit is contained in:
Alex Ellis
2017-10-22 22:07:29 +01:00
parent e4a1ef2d6b
commit f696d3930d
2 changed files with 8 additions and 1 deletions

View File

@ -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
}
}