Remove code duplicated during a rebase

Signed-off-by: Lucas Roesler <roesler.lucas@gmail.com>
This commit is contained in:
Lucas Roesler 2017-11-13 08:13:51 +01:00 committed by Alex Ellis
parent 156103e2db
commit fe7dd9068f
2 changed files with 0 additions and 13 deletions

View File

@ -82,12 +82,6 @@ func makeSpec(request *requests.CreateFunctionRequest, maxRestarts uint64, resta
} else {
constraints = linuxOnlyConstraints
}
labels := map[string]string{"function": "true"}
if request.Labels != nil {
for k, v := range request.Labels {
labels[k] = v
}
}
labels := map[string]string{
"com.openfaas.function": request.Service,
@ -135,10 +129,6 @@ func makeSpec(request *requests.CreateFunctionRequest, maxRestarts uint64, resta
Replicas: getMinReplicas(request),
},
},
Annotations: swarm.Annotations{
Name: request.Service,
Labels: labels,
},
}
// TODO: request.EnvProcess should only be set if it's not nil, otherwise we override anything in the Docker image already

View File

@ -21,9 +21,6 @@ type CreateFunctionRequest struct {
// EnvVars provides overrides for functions.
EnvVars map[string]string `json:"envVars"`
// Secrets is a list of secrets required for the orchestration layer to provide
Secrets []string `json:"secrets"`
// RegistryAuth is the registry authentication (optional)
// in the same encoded format as Docker native credentials
// (see ~/.docker/config.json)