fix: re-add CLI environment variables as subprocess plugin context

Signed-off-by: Zadkiel AHARONIAN <hello@zadkiel.fr>
pull/31611/head
Zadkiel AHARONIAN 10 months ago committed by GitHub
parent 5bab984cef
commit b0191649b7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -26,6 +26,7 @@ import (
"github.com/tetratelabs/wazero"
"go.yaml.in/yaml/v3"
"helm.sh/helm/v4/pkg/cli"
"helm.sh/helm/v4/pkg/helmpath"
)
@ -116,7 +117,9 @@ func newPrototypePluginManager() (*prototypePluginManager, error) {
return &prototypePluginManager{
runtimes: map[string]Runtime{
"subprocess": &RuntimeSubprocess{},
"subprocess": &RuntimeSubprocess{
EnvVars: cli.New().EnvVars(),
},
"extism/v1": &RuntimeExtismV1{
HostFunctions: map[string]extism.HostFunction{},
CompilationCache: cc,

Loading…
Cancel
Save