mirror of https://github.com/helm/helm
HELM_PLUGINS may contain a list of directories separated by the OS path list separator. Loading and listing plugins already splits that list, but plugin installation joined the whole value with the plugin name, creating a literal directory such as "/tmp/abc:/tmp/xyz/helm-secrets". The install reported success while the plugin was never found afterwards. Add EnvSettings.PluginInstallDirectory(), which returns the first entry of HELM_PLUGINS (the one with the highest precedence when loading), and use it for the install path in both the base and OCI installers. `helm plugin update` and `helm plugin uninstall` had the same problem: they passed the raw setting to LoadAllDir, so no plugin was found when several directories were configured. They now search every configured directory, and uninstall removes the versioned tarball and provenance files next to the plugin instead of assuming the first directory. Closes #11310 Signed-off-by: ChadiDridi <dridichady@gmail.com>pull/32547/head
parent
2a29f1770b
commit
4f28f89aac
Loading…
Reference in new issue