-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Restore support for log specific flags in Kubernetes Components #934
Restore support for log specific flags in Kubernetes Components #934
Conversation
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.
067733c
to
9a8eeb4
Compare
3220544
to
444d21e
Compare
I don't think we should revert the dependency update. We just need to properly register klog flags. |
444d21e
to
1b4a734
Compare
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.
Yeah, I dealed with too complicated, I'm not sure if the current way is right.
Could you take a look @serathius ? thanks.
cc @pohly |
Ideally you follow what Kubernetes is doing: register the flags, but mark them as deprecated. Then in a future version you can remove them. The |
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.
Hi, @pohly, thanks for your suggestion, but according to the template in the link, the flags will still be deprecated, or there are other setting modes?
So you want to support these flags forever, even after Kubernetes is done with the deprecation? Then you are on your own, you will have to use old code that might not get any security fixes anymore. Are you sure you want to do that? |
No. We hope to drop these flags in the next release. Only the current version supports it. I mean, I use the way by example, those flags have been deprecation, where am i using it wrong? |
The current component-base still supports them. They are just marked as deprecated. |
With the example given, In the following function, the deprecated flags are not loaded as before. |
1b4a734
to
79002c4
Compare
Add Kubelet not reporting metrics for nodes case in KNOWN_ISSUES
79002c4
to
020b038
Compare
I used another function
anyway, thanks @pohly . |
/retest |
Can you confirm that passing one of the flags results in changes in output? |
let me confirm it. Whether the modification will take effect? |
Ah, sorry - my comment about Out of curiosity, why did the 0.6.0 release of metrics-server not have those flags anymore? |
You're welcome. We may not communicate clearly. Our needs are as described in the issue #933,
Now my question is, how to correctly implement it, can you help analyze it, thank you |
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.
/cc @pohly
Hi @serathius When I set the flag like below
logs output to file |
So it seems it was the removal of unconditional klog flag registration in kubernetes/kubernetes@21d1bcd#diff-343bdf6b972d2cacf3d2be418fc4d36f9ece7b726ff8b23af8c623425284c439 @serathius Is there anything we can and/or should do to notify users of that package that updating to 1.23.x needs additional changes? |
/lgtm
There is no stability guarantees for staging repos, that said we should notify consumers on how they can re-enable klog, to follow K8s deprecation. I'm not sure about best communication channel. One way would be to use code search to find kubernetes sigs projects that might be affected and file an issue there. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: serathius, yangjunmyfm192085 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 |
/hold I remembered that this change is needed for v0.6.0 and not the next release. |
Ok, #933 (comment) reported that even |
/unhold |
/retest |
/retest |
ok, Let me cherry pick into the v0.6.0 branch too. |
What this PR does / why we need it:
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #933
as #933 discussed, We need to restore support for the following flags