Skip to content

[TS-166] Plugin installation clones repo instead of installing #67

@tylermalan

Description

@tylermalan

When I successfully install this plugin, invoking the command to use it results in an error. It's trying to invoke the helm-ssm file inside the helm-ssm directory, but that file doesn't exist. Instead, the helm plugin add command seems to have cloned the helm-ssm repo into the plugins directory.

~ # helm plugin add https://github.com/codacy/helm-ssm
Installed plugin: ssm
~ # helm ssm
Error: fork/exec /root/.local/share/helm/plugins/helm-ssm/helm-ssm: no such file or directory
~ # cd /root/.local/share/helm/plugins
~/.local/share/helm/plugins # ls -al
total 16
drwxr-xr-x 4 root root 4096 Jan 10 21:21 .
drwxr-xr-x 3 root root 4096 Jan 10 04:47 ..
drwxr-xr-x 7 root root 4096 Jan 10 21:21 helm-ssm
~/.local/share/helm/plugins # cd helm-ssm
~/.local/share/helm/plugins/helm-ssm # ls -al
total 88
drwxr-xr-x 7 root root  4096 Jan 10 21:21 .
drwxr-xr-x 4 root root  4096 Jan 10 21:21 ..
drwxr-xr-x 2 root root  4096 Jan 10 21:21 .circleci
drwxr-xr-x 8 root root  4096 Jan 10 21:21 .git
drwxr-xr-x 3 root root  4096 Jan 10 21:21 .github
-rw-r--r-- 1 root root    47 Jan 10 21:21 .gitignore
-rw-r--r-- 1 root root   760 Jan 10 21:21 CHANGELOG.md
-rw-r--r-- 1 root root  1063 Jan 10 21:21 LICENSE
-rw-r--r-- 1 root root  1817 Jan 10 21:21 Makefile
-rw-r--r-- 1 root root  4404 Jan 10 21:21 README.md
drwxr-xr-x 2 root root  4096 Jan 10 21:21 cmd
-rw-r--r-- 1 root root   879 Jan 10 21:21 go.mod
-rw-r--r-- 1 root root 20971 Jan 10 21:21 go.sum
-rwxr-xr-x 1 root root  3340 Jan 10 21:21 install-binary.sh
drwxr-xr-x 2 root root  4096 Jan 10 21:21 internal
-rw-r--r-- 1 root root   225 Jan 10 21:21 plugin.yaml

As you can see, there's no additional helm-ssm file inside the /plugins/helm-ssm directory. But the helm ssm command is trying to find it.

This is using helm version:

~/.local/share/helm/plugins/helm-ssm # helm version
version.BuildInfo{Version:"v3.10.2", GitCommit:"", GitTreeState:"", GoVersion:"go1.19.3"}

Metadata

Metadata

Assignees

No one assigned

    Labels

    jira-issueIssue tracked on JIRA

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions