helm / helm/helm-mapkubeapis

helm-mapkubeapis plugin local install error

Open
#130 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
Go
Stars
1k
Forks
121
PR merge metrics
No merged PRs in 30d

Description

It is currently impossible to install the plugin locally from the archive. If you follow the commands below, helm makes a symbolic link to the helm-mapkubeapis directory. This offline installation method could work if the mapkubeapis binary were delivered directly under the bin directory in the archive.

```
[root@trinity ~]# mkdir helm-mapkubeapis
[root@trinity ~]# tar xzf helm-mapkubeapis_0.4.1_linux_amd64.tar.gz -C helm-mapkubeapis
[root@trinity ~]# export HELM_LINTER_PLUGIN_NO_INSTALL_HOOK=true
[root@trinity ~]# helm plugin install helm-mapkubeapis
[root@trinity ~]# helm mapkubeapis
Error: fork/exec /root/.local/share/helm/plugins/helm-mapkubeapis/bin/mapkubeapis: no such file or directory
[root@trinity3 (TRINITY) ~]# ll /root/.local/share/helm/plugins/helm-mapkubeapis
lrwxrwxrwx. 1 root root 22 Jan 5 15:11 /root/.local/share/helm/plugins/helm-mapkubeapis -> /root/helm-mapkubeapis
[root@trinity3 (TRINITY) ~]# ll /root/helm-mapkubeapis
total 42508
-rw-r--r--. 1 1001 1002 11357 Mar 7 2023 LICENSE
-rw-r--r--. 1 1001 1002 10234 Mar 7 2023 README.md
drwxr-xr-x. 2 root root 4096 Jan 5 15:10 config
-rwxr-xr-x. 1 1001 1002 43491328 Mar 7 2023 mapkubeapis
-rw-r--r--. 1 1001 1002 327 Mar 7 2023 plugin.yaml
drwxr-xr-x. 2 root root 4096 Jan 5 15:10 scripts
```

I don't know if this fix is a good idea or not, as it seems to me that a new helm feature is needed (https://github.com/helm/helm/issues/12684)

Contributor guide

Open the contributing guide

Research direction

Reproduce the documented archive extraction and `helm plugin install` commands, then inspect the archive layout and its `plugin.yaml`. Verify how the installed symlink resolves the executable and determine whether the packaged binary is placed where Helm expects it. Done means the offline archive installation allows `helm mapkubeapis` to run without the reported missing-file error.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, helm
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.