-
Notifications
You must be signed in to change notification settings - Fork 39.6k
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-proxy: Fix flag validation for healthz-bind-address and metrics-bind-address #54191
kube-proxy: Fix flag validation for healthz-bind-address and metrics-bind-address #54191
Conversation
@MrHohn do you plan to rebase this (to match the move from componentconfig to pkg/proxy/apis/kubeproxyconfig) for 1.9? |
@ncdc Thanks for the reminder, I missed the rebase-needed signal. Will rebase and let you know. |
509125c
to
b014978
Compare
@ncdc Rebased. Though |
/lgtm |
/sig network |
Thanks for the quick review. /assign @mikedanese |
/retest |
/test pull-kubernetes-unit |
/test pull-kubernetes-cross |
/test pull-kubernetes-e2e-gce |
1 similar comment
/test pull-kubernetes-e2e-gce |
/kind bug |
b014978
to
6c38513
Compare
6c38513
to
7d7318d
Compare
Updated PR for ipv6. |
/retest |
pkg/apis/componentconfig/helpers.go
Outdated
return nil | ||
} | ||
// Both IP and IP:port are valid. | ||
if net.ParseIP(s) == nil { |
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.
reads better if you just bail out early
if net.ParseIP(s) != nil {
*v.Val = s
return nil
}
...
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.
Sounds good, done.
/lgtm |
/approve |
/retest |
7d7318d
to
316c369
Compare
/test pull-kubernetes-bazel-build |
/status approved-for-milestone |
/approve |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bowei, mikedanese, MrHohn, ncdc The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/test all Tests are more than 96 hours old. Re-running tests. |
/test all [submit-queue is verifying that this PR is safe to merge] |
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions here. |
What this PR does / why we need it:
--healthz-bind-address
and--metrics-bind-address
are broken for kube-proxy as they do not allowip:port
format, though they claim to support it.Which issue this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close that issue when PR gets merged): Fixes #53754Special notes for your reviewer:
cc @ncdc
Release note: