runtime/local: fix injection of secrets as env vars (#1930)
This commit is contained in:
parent
f0142febcf
commit
9380b365de
@ -280,7 +280,7 @@ func (r *localRuntime) Create(s *runtime.Service, opts ...runtime.CreateOption)
|
|||||||
|
|
||||||
// pass secrets as env vars
|
// pass secrets as env vars
|
||||||
for key, value := range options.Secrets {
|
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 {
|
if _, ok := r.namespaces[options.Namespace]; !ok {
|
||||||
|
Loading…
Reference in New Issue
Block a user