-
Notifications
You must be signed in to change notification settings - Fork 39.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
Fix cAdvisorPort, 0 is a valid option #46876
Conversation
@mtaufen: GitHub didn't allow me to request PR reviews from the following users: antoineco, farcaller. Note that only kubernetes members can review this PR, and authors cannot review their own PRs. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mtaufen, vishh The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
I was certain I didn't see any warning when starting kubelet with that option, is 1.6.4 affected? (can't check, on a mobile) |
Flags layer on top after this defaulting step, so there's something else funny going on if you still aren't able to override with 0 via a flag. |
I mean, passing 0 to that flag already disables the cAdvisor service on kube 1.6.4 (which seems strange after looking at your commit). In which situation did you hit that bug? How can you reproduce? Just curious. |
You'd hit it if you were just pulling config directly out of a KubeletConfiguration object without flags; e.g. dynamic config. I didn't personally encounter this, but it's obviously a bug so it makes sense to fix it. |
It seemed like people in #11710 were having trouble with the flag though. |
Ah right, makes sense, good that you spotted it 👏 |
The release team bug triage notes: The pr was approved after the code freeze because it indeed fixed a regression issue in 1.7 release based on the discuss at #11710 (comment) cc/ @marun |
re-adding label |
@mtaufen: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
@k8s-bot pull-kubernetes-federation-e2e-gce test this |
Automatic merge from submit-queue (batch tested with PRs 46787, 46876, 46621, 46907, 46819) |
wrt #11710, this maintains the current default if nobody provides the flag, but allows explicitly passing 0.
/cc @farcaller @vishh @liggitt @antoineco @philips
/assign @liggitt @vishh