-
Notifications
You must be signed in to change notification settings - Fork 4.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
Rename PetSet to StatefulSet #1395
Comments
Yes, we were aware of this. |
@bryk would you guys like some help on the refactor? |
Of course, any help is appreciated. We want to be in sync with k8s releases so it would be great to release dashboard 1.5 at the same time with StatefulSets already. Thanks for your help! |
I don't know too well exactly how go dependencies work, but I tried to do the refactor and I found out that our vendored libraries don't have the StatefulSet changes in kubernetes/kubernetes yet. Also govendor doesn't tell me I can update those libs (we reference the kubernetes core source by looking at k8s.io/kubernetes) Does that mean that we need to wait till this refactor is moved to k8s.io repo somehow. And is that linked to actual releases? |
@rf232 Basically our version of core code is inside our repository, so we have to update it to get newest changes. Kubernetes v1.5.0-alpha.2 release has them, so we can make our alpha by updating dependencies and performing changes in code (switching from |
hmm, updating dependencies to the versions from github master is /far/ from trivial, so if someone can help me/do that I would be very grateful :) |
@caesarxuchao or @mbohlool could one of you take a look at how Dashboard is vendoring its libraries and suggest any best practices? It looks like the only client they import directly from their source is k8s.io/kubernetes/pkg/client/unversioned |
Maybe we should switch to client-go and clean up our kubernetes deps? We're mostly using old client Interface that is no longer available in newer version of k8s and a bit of kubectl code I think. I can take care of that. It will take some time to refactor everything though. |
client/unversioned is already removed from the main repo. I'll also recommend using client-go. However, there will be some frictions migrating to client-go. If One potential blocker for adopting |
@caesarxuchao It helps a lot, thanks! I'll try |
I do have one concern though. If we want to rename |
Don't use v2.0.0-alpha.0. It still has apps/v1alpha1, which had graduated to v1beta1 in master. Client code for apps/v1beta1 will be published to client-go today, I can cut v2.0.0-alpha.1 after that. This version will be quite stable. |
I've used |
Sounds good. FYI, the signature of those utility functions will be changed soon (kubernetes/kubernetes#35159 (comment)), so you might have to go through the refactor once more. |
@bryk In k8s 1.5 we're renaming PetSet to StatefulSet. We should do the rename in dashboard too (both frontend and backend).
@kow3ns @foxish @erictune
The text was updated successfully, but these errors were encountered: