KubeVirt client-go and dependency hell and client-gen

192 views
Skip to first unread message

Roman Mohr

unread,
Oct 21, 2021, 7:39:01 AM10/21/21
to kubevirt-dev, Michael Henriksen
Hi,

There have been a lot of (rightful) complaints about how hard it is to use kubevirt/client-go in your project. Mostly because kubevir/client-go and other dependencies of your project had a very high chance of having conflicts on their k8s dependencies.

Michal and I are working on improving the situation here by ensuring that we expose repos which only countain the CDI and the KubeVirt API without additional dependencies to make them compatible with client-gen.

I have a PR for kubevirt [1] which does not yet synchronize anything out of kubevirt/kubevirt but makes our api already compatible with client-gen.

I would be happy if people suffering from this in the past take the time to try out the PR and see if it helps them already in their projects, so that I can incorporate feedback early.

Best regards,
Roman

Michael Henriksen

unread,
Oct 28, 2021, 1:36:40 PM10/28/21
to Roman Mohr, kubevirt-dev
On Thu, Oct 21, 2021 at 7:39 AM Roman Mohr <rm...@redhat.com> wrote:
Hi,

There have been a lot of (rightful) complaints about how hard it is to use kubevirt/client-go in your project. Mostly because kubevir/client-go and other dependencies of your project had a very high chance of having conflicts on their k8s dependencies.

Michal and I are working on improving the situation here by ensuring that we expose repos which only countain the CDI and the KubeVirt API without additional dependencies to make them compatible with client-gen.


The new base import path for CDI resources is:  kubevirt.io/containerized-data-importer-api/pkg/apis


After the next CDI release, I will update KubeVirt to refer to the new paths

Zang Li

unread,
Oct 28, 2021, 1:49:49 PM10/28/21
to Michael Henriksen, Roman Mohr, kubevirt-dev
That's really nice! Thank you Roman and Michael! 

--
You received this message because you are subscribed to the Google Groups "kubevirt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kubevirt-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kubevirt-dev/CAF0u-nhdzhi_isT5OMegm51b%2BEbPJRzTxuKsSrrNjA42hWUk8g%40mail.gmail.com.

Roman Mohr

unread,
Nov 17, 2021, 4:32:35 AM11/17/21
to Zang Li, Michael Henriksen, kubevirt-dev
On Thu, Oct 28, 2021 at 7:49 PM Zang Li <zan...@google.com> wrote:
That's really nice! Thank you Roman and Michael! 

Another update on this one: We are now done with the separation of client-go and the api [1].

[2] now contains solely the API. Soon there will also be a nice README on how to use it, once [3] is merged.

Thanks Michael for helping push these changes. I hope that this finally makes it easy to integrate with kubevirt.

Best regards,
Roman

Reply all
Reply to author
Forward
0 new messages