-
-
Notifications
You must be signed in to change notification settings - Fork 5.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
Bump kubernetes/client-go #2848
Conversation
41545a9
to
cd776fc
Compare
@yue9944882 we don't really like WIP PR because:
Now, you have done this PR, could you work in another branch, run And could you rebase your PR on master. |
@yue9944882 please rebase on master and use |
@ldez Okay, I will only push next time when this PR is completely ready. (Facepalm |
@yue9944882 Each client-go version should be completely backwards compatible, so I suggest we skip version 5 and go straight for version 6. |
In case you missed it: The official blog post on client-go v6 has some details on how to configure dep for v6 properly. |
6d1240e
to
ac8289d
Compare
@timoreimann @ldez Even though this PR looks extremely large. But actually the changes is small. I will point out these changes in Code Review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other unmentioned changes is all about pkg moving or remaning.
Namespace(namespace). | ||
Resource(resource). | ||
VersionedParams(&options, api.ParameterCodec). | ||
FieldsSelectorParam(fieldSelector). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This functions FieldsSelectorParam
and LabelsSelectorParam
is removed. And the selectors are moved into ListOptions
panic(err) | ||
} | ||
|
||
informer.AddEventHandler(newResourceEventHandler(watchCh)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AddEventHandler
has no return value now.
fields.Everything(), | ||
labelSelector) | ||
|
||
informer := loadInformer(listWatch, &v1beta1.Ingress{}, watchCh) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ListerWatcher is moved from L301 to here.
@yue9944882 Could you revert all the changes on the vendor and leave the lock and the toml file and Traefik code, as first step, if possible. |
If not possible please use |
For the continuation, make commits like that.:
Please respect this order, in a first time please don't commit vendored files. |
@ldez I am sure I've
Actually reverting vendor will fail this PR. When I typed |
I know, but for now it's not important. Please revert. git reset 7d3dd5a0e43b701a8231a8eff8d8024fcc7a5dba
git add Gopkg.*
git commit -m "chore: update dep configuration."
git add provider/ integration/
git commit -m "feat: update Traefik code."
# Do not do that for now
# git add vendor/
# git commit -m "chore: update vendor." You need to use dep 0.4.1 minimum, please check you version: |
And it's not a bug, it's the behavior of dep for transitive when a dependency don't use dep. |
ac8289d
to
3939206
Compare
@ldez Oops, I didn't notice these edition of the message you leave. How about editing these commit messages altogether after review? Btw I didn't modify files under |
@ldez @timoreimann PTAL. The tests failing tho because missing upgrades of |
Not needed 😉 |
Please wait, we need time to review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job 👍
Gopkg.toml
Outdated
name = "k8s.io/apimachinery" | ||
version = "kubernetes-1.9.0" | ||
|
||
[[constraint]] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Warning: the following project(s) have [[constraint]] stanzas in Gopkg.toml:
✗ k8s.io/apiextensions-apiserver
However, these projects are not direct dependencies of the current project:
they are not imported in any .go files, nor are they in the 'required' list in
Gopkg.toml. Dep only applies [[constraint]] rules to direct dependencies, so
these rules will have no effect.
Either import/require packages from these projects so that they become direct
dependencies, or convert each [[constraint]] to an [[override]] to enforce rules
on these projects, if they happen to be transitive dependencies,
Could you convert this constraint
to override
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's more likely that we don't need it: k8s.io/apiextensions-apiserver
is only required when dealing with things like CRDs, which we don't to the best of my knowledge.
If not used directly, I'd recommend to remove the stanza.
328bbdd
to
d9ecf75
Compare
@timoreimann I just find that |
d9ecf75
to
810bc45
Compare
@yue9944882 it's good to me, now you can add the last commit with the vendor. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I gave the PR a quick test drive, validating that the core functionality (including cluster-wide and namespace-specific watches) is working as expected.
PR LGTM -- great job @yue9944882 👏
(Next stop: See if we can use some of the newer client-go features, such as the throttling backoff queue.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Nice job @yue9944882 👏
8eddab1
to
475ff70
Compare
What does this PR do?
Briefly, this PR does the following things:
Gopkg.toml
: Constraints client-go version to v6 and kubernetes/apixxx to release-1.9 branch.Motivation
Fixes #2840.
More
Additional Notes