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

Unexecutable plugin error on Windows #14

Closed
gochist opened this issue Aug 21, 2020 · 8 comments
Closed

Unexecutable plugin error on Windows #14

gochist opened this issue Aug 21, 2020 · 8 comments

Comments

@gochist
Copy link

gochist commented Aug 21, 2020

I'm getting error like below on Windows git bash and powershell also.

Error: accumulating resources: accumulateFile "accumulating resources from '../../base': 'C:\\Users\\****\\****\\kustomize\\base' must resolve to a file", accumulateDirector: "recursed accumulation of path 'C:\\Users\\****\\****\\kustomize\\base': loading generator plugins: unexecutable plugin at: C:\\Users\\****\\.config\\kustomize\\plugin\\goabout.com\\v1beta1\\sopssecretgenerator\\SopsSecretGenerator"

According to the community, kustomize does not support exec plugin on Windows.

https://kubernetes.slack.com/archives/C9A5ALABG/p1585924675198200

@jcassee
Copy link
Contributor

jcassee commented Aug 31, 2020

Thanks for the heads-up! I created an issue on the kustomize project for clarification. I'll have to remove the Windows binary if this is true. You might need to use something like a Linux VM or Docker (?) to use plugins on Windows...

@jcassee
Copy link
Contributor

jcassee commented Sep 15, 2020

@gochist Could you try the suggestion made here?

kubernetes-sigs/kustomize#2924 (comment)

@gochist
Copy link
Author

gochist commented Sep 15, 2020

@jcassee I tried and added a comment, kubernetes-sigs/kustomize#2924 (comment).

@jcassee
Copy link
Contributor

jcassee commented Sep 15, 2020

Silly question, but is the path to the plugin C:\\Users\\****\\.config\\kustomize\\plugin\\goabout.com\\v1beta1\\sopssecretgenerator\\SopsSecretGenerator correct? I.e. can you try your Go test code on that path instead of your Downloads folder?

@gochist
Copy link
Author

gochist commented Sep 16, 2020

Not silly at all. I did it with a string, "C:\\Users\\june.yi\\AppData\\Local\\kustomize\\plugin\\goabout.com\\v1beta1\\sopssecretgenerator\\SopsSecretGenerator.exe". And the result is same.

@jcassee
Copy link
Contributor

jcassee commented Sep 16, 2020

Alright, so it seems the problem is with exec plugins in general. Let's see what happens in kubernetes-sigs/kustomize#2924. In the mean time I will add a note to the readme.

@jcassee
Copy link
Contributor

jcassee commented Oct 21, 2020

@gochist I see you fixed exec plugins on Windows yourself: kubernetes-sigs/kustomize#3027 😎

I think we can close this issue then? Or do the docs require updating?

@gochist
Copy link
Author

gochist commented Oct 22, 2020

@jcassee Thank you! I'm closing this issue. 👍🏼

@gochist gochist closed this as completed Oct 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants