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

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 {