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

pkg/k8s: trim spaces from loadBalancerSourceRanges #13996

Merged
merged 1 commit into from
Nov 14, 2020

Conversation

aanm
Copy link
Member

@aanm aanm commented Nov 12, 2020

Similarly to what is being done in upstream kube-proxy [1], but
unfortunately without explaining why, loadBalancerSourceRanges might
contain spaces which prevents the CIDR from being parsed correctly.

[1] kubernetes/kubernetes#94107

Fixes: 3195681 ("k8s: Add and parse LoadBalancerSourceRanges field")
Signed-off-by: André Martins andre@cilium.io

Trim spaces from loadBalancerSourceRanges when parsing its values.

@aanm aanm added release-note/bug This PR fixes an issue in a previous release of Cilium. needs-backport/1.8 labels Nov 12, 2020
@aanm aanm requested review from a team and nebril November 12, 2020 09:45
@maintainer-s-little-helper maintainer-s-little-helper bot added this to In progress in 1.10.0 Nov 12, 2020
@maintainer-s-little-helper maintainer-s-little-helper bot added this to Needs backport from master in 1.8.6 Nov 12, 2020
@aanm aanm requested review from brb and removed request for nebril November 12, 2020 09:45
@aanm aanm assigned brb and unassigned brb and nebril Nov 12, 2020
@aanm
Copy link
Member Author

aanm commented Nov 12, 2020

test-me-please

Copy link
Member

@brb brb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😱

Copy link
Member

@christarazi christarazi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Question below on whether this is being done at the right level.

pkg/k8s/service.go Outdated Show resolved Hide resolved
@maintainer-s-little-helper maintainer-s-little-helper bot added ready-to-merge This PR has passed all tests and received consensus from code owners to merge. labels Nov 12, 2020
@christarazi christarazi removed the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Nov 12, 2020
@aanm
Copy link
Member Author

aanm commented Nov 12, 2020

test-me-please

pkg/k8s/service.go Outdated Show resolved Hide resolved
Similarly to what is being done in upstream kube-proxy [1], but
unfortunately without explaining why, loadBalancerSourceRanges might
contain spaces which prevents the CIDR from being parsed correctly.

[1] kubernetes/kubernetes#94107

Fixes: 3195681 ("k8s: Add and parse LoadBalancerSourceRanges field")
Signed-off-by: André Martins <andre@cilium.io>
@aanm
Copy link
Member Author

aanm commented Nov 13, 2020

test-me-please

@maintainer-s-little-helper maintainer-s-little-helper bot added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Nov 14, 2020
@christarazi christarazi merged commit ada413f into cilium:master Nov 14, 2020
@maintainer-s-little-helper maintainer-s-little-helper bot moved this from Needs backport from master to Backport pending to v1.8 in 1.8.6 Nov 17, 2020
@maintainer-s-little-helper maintainer-s-little-helper bot moved this from Needs backport from master to Backport pending to v1.8 in 1.8.6 Nov 17, 2020
@joestringer joestringer added this to Backport pending to v1.9 in 1.9.1 Nov 17, 2020
@maintainer-s-little-helper maintainer-s-little-helper bot moved this from Backport pending to v1.8 to Backport done to v1.8 in 1.8.6 Nov 26, 2020
@maintainer-s-little-helper maintainer-s-little-helper bot moved this from Backport pending to v1.8 to Backport done to v1.8 in 1.8.6 Nov 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/bug This PR fixes an issue in a previous release of Cilium.
Projects
No open projects
1.8.6
Backport done to v1.8
1.9.1
Backport pending to v1.9
Development

Successfully merging this pull request may close these issues.

None yet

6 participants