Unexecutable plugin error on Windows
gochist opened this issue ยท 8 comments
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
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 I tried and added a comment, kubernetes-sigs/kustomize#2924 (comment).
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?
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.
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.
@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?