Skip to content

helm-mapkubeapis plugin local install error #130

Open
@bastienbosser

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 (helm/helm#12684)

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions