-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Cannot build statically linked plugins because of CGO use in sigs.k8s.io/kustomize/v3/pkg #1482
Comments
I managed to read a bit of documentation and found out that
So I guess it's not kustomize after all! Sorry about that |
To bring a closing comment to this issue, this is actually a golang issue when using |
@arthurgustin this error means you have not put your plugin in your plugins home folder, read https://github.com/kubernetes-sigs/kustomize/blob/master/docs/plugins/goPluginGuidedExample.md#make-a-home-for-plugins for more info, cheers |
you can also read https://gitlab.com/maltcommunity/public/checksumer#build and https://gitlab.com/maltcommunity/public/checksumer#run as another illustration example |
@oboukili I override |
Hello,
I'm trying to build a statically linked kustomize v3 Go plugin, but it seems the use of CGO is required by sigs.k8s.io/kustomize/v3/pkg.
Enabling the use of CGO works of course, however it results in a dynamically linked binary, not suitable for distribution (being a Go beginner, I've read an interesting article here: https://dave.cheney.net/2016/01/18/cgo-is-not-go):
Here's my list of imports:
I couldn't find which exact import among ifc,resmap or types required it, however since I never had that kind of issue with the other imports I'm pretty sure it comes from here.
Is using CGO a definitive sigs.k8s.io/kustomize/v3/pkg/ prerequisite?
Best regards,
The text was updated successfully, but these errors were encountered: