bugfix: vault register should respect tmpdir (#29978)

This commit is contained in:
Raymond Ho 2025-03-20 13:05:44 -07:00 committed by GitHub
parent 822eda6be8
commit be5afdd56c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 0 deletions

3
changelog/29978.txt Normal file
View file

@ -0,0 +1,3 @@
```release-note:bug
plugins: plugin registration should honor the `plugin_tmpdir` config
```

View file

@ -52,6 +52,7 @@ func (c *PluginCatalog) setInternal(ctx context.Context, plugin pluginutil.SetPl
Env: plugin.Env,
Sha256: plugin.Sha256,
Builtin: false,
Tmpdir: c.tmpdir,
}
if entryTmp.OCIImage != "" && entryTmp.Runtime != "" {
var err error
@ -112,6 +113,7 @@ func (c *PluginCatalog) setInternal(ctx context.Context, plugin pluginutil.SetPl
Env: plugin.Env,
Sha256: plugin.Sha256,
Builtin: false,
Tmpdir: c.tmpdir,
}
buf, err := json.Marshal(entry)