runtime/local: fix injection of secrets as env vars (#1930)

This commit is contained in:
ben-toogood 2020-08-13 09:22:25 +01:00 committed by GitHub
parent f0142febcf
commit 9380b365de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -280,7 +280,7 @@ func (r *localRuntime) Create(s *runtime.Service, opts ...runtime.CreateOption)
// pass secrets as env vars
for key, value := range options.Secrets {
options.Env = append(options.Env, key, value)
options.Env = append(options.Env, fmt.Sprintf("%v=%v", key, value))
}
if _, ok := r.namespaces[options.Namespace]; !ok {