fix(pkg/plugin/installer): unix-style paths in HELM_PLUGINS for helm install

Supports unix-style paths (with a colon) in the HELM_PLUGINS env for installing new plugins.

Closes #11310

Signed-off-by: Sergei Karpov <xodmqjw@gmail.com>
pull/11675/head
Sergei Karpov 2 years ago committed by Sergei Karpov
parent 12dacf0781
commit 99e9019e41

@ -14,6 +14,7 @@ limitations under the License.
package installer // import "helm.sh/helm/v3/pkg/plugin/installer"
import (
"fmt"
"os"
"testing"
)
@ -34,7 +35,7 @@ func TestPath(t *testing.T) {
expectPath: "/helm/data/plugins/helm-secrets",
}, {
source: "https://github.com/jkroepke/helm-secrets",
helmPluginsDir: "/helm/data/plugins:/remote/helm/data/plugins",
helmPluginsDir: fmt.Sprintf("/helm/data/plugins%c/remote/helm/data/plugins", os.PathListSeparator),
expectPath: "/helm/data/plugins/helm-secrets",
},
}

Loading…
Cancel
Save