[wip] Libvirt plugin via golang plugin instead of TAGS=libvirt#3225
[wip] Libvirt plugin via golang plugin instead of TAGS=libvirt#3225dcbw wants to merge 2 commits intoopenshift:masterfrom
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
It's an interesting idea but having the installer be a single binary is pretty convenient, how would we distribute the libvirt plugin? When we talked about this before, we discussed having terraform-provider-libvirt not use C-bindings at all, e.g. https://github.com/digitalocean/go-libvirt. Then even a mac could run the baremetal or libvirt installers to install on a remote linux host. |
@stbenjam yeah, that seems like a bunch more work, but would certainly be nicer. |
|
@dcbw: The following tests failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
|
@stbenjam so unfortunately we can't just convert over go go-libvirt in the installer, because github.com/dmacvicar/terraform-provider-libvirt still uses libvirt-go C bindings. And that's a heavy thing to lift. But the installer is already downloaded as a tarball with the binary and a README (eg https://openshift-release-artifacts.svc.ci.openshift.org/4.4.0-0.nightly-2020-03-04-191159/). Would it be such a big problem to ship a shared object in the Linux build of the installer too? |
We'd need to update If libvirt folks want this, could we keep the TAGS for building openshift-baremetal-install? I really find a single binary more convenient (it's extractable with oc as well, openshift/oc#52) What does the plugin buy us? I guess we could stop shipping multiple installer images. /cc @vrutkovs |
|
Not going to have time to pursue this further... |
@eparis