You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using terraform-provider-kubernetes on macos I run into the issue of hashicorp/terraform#3536 where the plugin cannot find my kubernetes cluster. If I compile the plugin with the CGO_ENABLED=1 on macos the plugin works as expected.
There's a cool repository which enables cross comping golang projects using a docker container https://github.com/crazy-max/xgo. Running the following commands resulted in a working binary with improved macos dns resolution:
git clone https://github.com/hashicorp/terraform-provider-kubernetes.git
go get github.com/crazy-max/xgo
xgo --targets=darwin/amd64 terraform-provider-kubernetes
Because it's using docker this should be pretty simple to implement in a CI job!
Thanks for this @mvgijssel, we'll need to explore a solution that works for all our providers without any other side effects in order to make this shift. Tagging this as upstream so the solution can be explored at that level.
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks!
ghost
locked as resolved and limited conversation to collaborators
Oct 31, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Description
Using
terraform-provider-kubernetes
on macos I run into the issue of hashicorp/terraform#3536 where the plugin cannot find my kubernetes cluster. If I compile the plugin with theCGO_ENABLED=1
on macos the plugin works as expected.There's a cool repository which enables cross comping golang projects using a docker container https://github.com/crazy-max/xgo. Running the following commands resulted in a working binary with improved macos dns resolution:
Because it's using docker this should be pretty simple to implement in a CI job!
References
hashicorp/terraform#3536
https://github.com/crazy-max/xgo
Community Note
The text was updated successfully, but these errors were encountered: