Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tylermalan opened this issue Jan 10, 2023 · 5 comments
Open

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

tylermalan opened this issue Jan 10, 2023 · 5 comments
Labels
jira-issue Issue tracked on JIRA

Comments

@tylermalan
Copy link

tylermalan commented Jan 10, 2023

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"}
@github-actions github-actions bot changed the title Plugin installs to wrong directory [TS-166] Plugin installs to wrong directory Jan 10, 2023
@github-actions github-actions bot added the jira-issue Issue tracked on JIRA label Jan 10, 2023
@github-actions
Copy link

Internal ticket created : TS-166

@tylermalan tylermalan changed the title [TS-166] Plugin installs to wrong directory [TS-166] Plugin installation clones repo instead of installing Jan 10, 2023
@IshitaShah14
Copy link

Any updates on this?

@tylermalan
Copy link
Author

Any updates on this?

No updates from me. Still seems to be doing the same thing.

@jimbo8098
Copy link

jimbo8098 commented Jun 12, 2023

Yeah it didn't work for me either. I did have success by downloading the Windows release into C:\Users\<user>\AppData\Roaming\helm\plugins\helm-ssm then untarring it. I was then able to use the SSM plugin. It doesn't look like that's intended.

It did take into account the version since when I specified 3.3.0 after trying to intended install method, I got an error telling me it was already installed.

@meysam81
Copy link

meysam81 commented Oct 5, 2023

+1 on this
Please fix this. The normal plugin installation approach (helm plugin install) is not working, as in the repo is not working!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
jira-issue Issue tracked on JIRA
Projects
None yet
Development

No branches or pull requests

4 participants