Skip to content
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

Kube-dns should use versioned client-go #31929

Closed
thockin opened this issue Sep 1, 2016 · 11 comments
Closed

Kube-dns should use versioned client-go #31929

thockin opened this issue Sep 1, 2016 · 11 comments
Assignees
Labels
area/dns sig/network Categorizes an issue or PR as relevant to SIG Network.

Comments

@thockin
Copy link
Member

thockin commented Sep 1, 2016

In prep to maybe move kube-dns to its own repo, we should adopt the new client lib.

@thockin thockin added sig/network Categorizes an issue or PR as relevant to SIG Network. area/dns labels Sep 1, 2016
@MrHohn
Copy link
Member

MrHohn commented Sep 8, 2016

Would like to work on this. I'm using versioned client-go for cluster-proportional-autoscaler too.

@MrHohn
Copy link
Member

MrHohn commented Sep 12, 2016

I met some difficulty when tried to use client-go library with current codes.

The main issue is that kube-dns is using informer from "k8s.io/kubernetes/pkg/controller/framework", which is not part of the client-go library. And this pakage continue introduces the dependencies of "k8s.io/kubernetes/pkg/api", "k8s.io/kubernetes/pkg/api/unversioned", "k8s.io/kubernetes/pkg/runtime" etc. And they eventually conflict with the underlying dependencies of "k8s.io/client-go/1.4/kubernetes"

And in kubernetes/client-go#4, people mentioned that somebody proposed a refactoring to the informer and I would need to do more research on it. Or we simply don't use informer. However that will lead to a certain amount of code changes.

@thockin
Copy link
Member Author

thockin commented Sep 12, 2016

ACK. If we're going to do major surgery to kube-dns we should consider
whether that is the right time to switch to coredns or (other). OK to
defer this for now.

On Mon, Sep 12, 2016 at 2:38 PM, Zihong Zheng notifications@github.com
wrote:

I met some difficulty when try to use client-go library with current codes.

The main issue is that kube-dns is using informer from
"k8s.io/kubernetes/pkg/controller/framework"
https://github.com/kubernetes/kubernetes/tree/master/pkg/controller/framework,
which is not part of the client-go library. And this pakage continue
introduces the dependencies of "k8s.io/kubernetes/pkg/api"
https://github.com/kubernetes/kubernetes/tree/master/pkg/api,
"k8s.io/kubernetes/pkg/api/unversioned"
https://github.com/kubernetes/kubernetes/tree/master/pkg/api/unversioned,
"k8s.io/kubernetes/pkg/runtime"
https://github.com/kubernetes/kubernetes/tree/master/pkg/runtime etc.
And they eventually conflict with the underlying dependencies of
"k8s.io/client-go/1.4/kubernetes"
https://github.com/kubernetes/client-go/tree/master/1.4/kubernetes

And in kubernetes/client-go#4
kubernetes/client-go#4, people mentioned that
somebody proposed a refactoring to the informer and I would need to do
more research on it. Or we simply don't use informer. However that will
lead to a certain amount of code changes.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#31929 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFVgVClvipZ8ITL-qyWpu_Wj52yVtqA9ks5qpcZVgaJpZM4JzOYx
.

@MrHohn
Copy link
Member

MrHohn commented Sep 16, 2016

Seems like it is an oversight and folks intended to include this Informer library too.

I will again work on this after this library is included.

@stp-ip
Copy link
Member

stp-ip commented Sep 18, 2016

Coredns has its first release available (https://github.com/miekg/coredns/releases) might be a good time to check it out.

@caesarxuchao
Copy link
Member

Seems like it is an oversight and folks intended to include this Informer library too.

Yeah, I'll move informer to the library, too. Perhaps next week.

@thockin
Copy link
Member Author

thockin commented Jan 18, 2017

@bowei is this done now?

@bowei
Copy link
Member

bowei commented Jan 18, 2017

It currently uses client-go, but not the versioned one -- opened issue kubernetes/dns#35

@bowei
Copy link
Member

bowei commented May 11, 2017

closing as this is tracked in the dns repo

@bowei
Copy link
Member

bowei commented May 11, 2017

/assign

@bowei
Copy link
Member

bowei commented May 11, 2017

/close

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/dns sig/network Categorizes an issue or PR as relevant to SIG Network.
Projects
None yet
Development

No branches or pull requests

7 participants