-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
v1.7 backports 2020-10-23 #13721
v1.7 backports 2020-10-23 #13721
Conversation
[ upstream commit 9673c48 ] Identity allocation uses cache and refcnt mechanisms, if the identity info is already in remote kvstore and localkeys store, it will just increase the refcnt, then notify the caller that this identity is reused. The caller will then not bump up the identity counter. However, there is a corner case that not get handled: refcnt from 0 to 1, which will result to negative identity count in the metrics output. This patch fixes the problem by returning another flag to indicate whether the identity is first-time referenced (refcnt from 0 to 1) or not. The caller then uses this information to determine whether or not to increase the counter. Signed-off-by: arthurchiao <arthurchiao@hotmail.com> Signed-off-by: Sebastian Wicki <sebastian@isovalent.com>
[ upstream commit c5b709b ] The port/RevNat info is stored in the bpf map in network byte order; When displaying the given lbmap content, the port needs to be converted to host byte order. Add ToHost() function for lbmap ToHost converts fields to host byte order. Signed-off-by: Jianlin Lv <Jianlin.Lv@arm.com> Signed-off-by: Sebastian Wicki <sebastian@isovalent.com>
[ upstream commit 682f682 ] Gets rid of ToNetwork() in DumpParser(). Signed-off-by: Jianlin Lv <Jianlin.Lv@arm.com> Signed-off-by: Sebastian Wicki <sebastian@isovalent.com>
[ upstream commit 5733f6a ] This change is only adding more unit tests to better understand the behavior of the labelsfilter as well as improving the documentation for the expectation of filtering labels. Signed-off-by: André Martins <andre@cilium.io> Signed-off-by: Sebastian Wicki <sebastian@isovalent.com>
test-backport-1.7 |
Provisioning error on https://jenkins.cilium.io/job/Cilium-PR-Ginkgo-Tests-K8s/3658/ |
test-backport-1.7 |
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.
All good for the first and last commit
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.
Checked the middle PR backport, LGTM based on features that were not present in v1.7 branch.
Once this PR is merged, you can update the PR labels via:
Each commit had some conflicts. They all seemed rather simple, but it would be good if I get an additional set of eyes on this:
commit 9673c48
Rather trivial merge conflict where v1.7 used
errors.Wrapf
instead offmt.Errorf
.commit c5b709b
Simple multiple merge conflicts in the
String()
functions, as v1.7 seemedto use
fmt.Sprintf
instead ofnet.JoinHostPort
.I skipped the the changes to the
pkg/maps/lbmap/affinity.go
file,which does not seem to exist in the v1.7 branch.
commit 682f682
Simple merge conflict in
String()
due toloadbalancer.ScopeInternal
check which is not present in
v1.7
Skipped the changes to functions related affinity map dumping in
pkg/maps/lbmap/lbmap.go
. They do not seem present in v1.7.Skipped changes to
pkg/maps/lbmap/source_range.go
and
pkg/maps/lbmap/affinity.go
, neither of which ar present in v1.7.commit 5733f6a
Simple removal of the
labels.
references inpkg/labels/filter_test.go
due to this file being partof the
labels
package instead thelabelsfilters
package in v1.7.