-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Add script to update cluster-autoscaler flags doc #7014
base: master
Are you sure you want to change the base?
Conversation
Welcome @rainfd! |
Hi @rainfd. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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-sigs/prow repository. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: rainfd The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
16faf6f
to
24fe655
Compare
/ok-to-test |
The Kubernetes project currently lacks enough contributors to adequately respond to all PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
/remove-lifecycle stale |
| `stderrthreshold` | logs at or above this threshold go to stderr when writing to files and stderr (no effect when -logtostderr=true or -alsologtostderr=true) | 2 | | ||
| `unremovable-node-recheck-timeout` | The timeout before we check again a node that couldn't be removed before | 5m0s | | ||
| `user-agent` | User agent used for HTTP calls. | "cluster-autoscaler" | | ||
| `v` | number for the log level verbosity | | |
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.
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.
v
and vmodule
come from klog, Is it necessary to remove it?
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.
@rainfd, This table contains parameters(flags) that are supported for CA, so mentioning the Klog flags will create confusion for the users.
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.
Is it necessary to remove it?
So it will be good if the Klog flags can be removed from this table.
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.
Is it necessary to remove it?
So it will be good if the Klog flags can be removed from this table.
@Shubham82 cluster-autoscaler also use klog.V(x).Info()
to mark log of different levels, this usage is common in the k8s community, so I don't think it really matters
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.
Adding --v
flag to cluster-autoscaler binary increases log verbosity and helps in debugging. I don't think the end user cares where it comes from.
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.
We should write docs with both technical and non-technical users in mind.
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 @vadasambar, My only concern here is that the parameters mentioned here are for CA (comes with CA) and --v
is for log verbosity, not a specific parameter to CA.
The following also mentioned in FAQ before the parameter table:
The following startup parameters are supported for cluster autoscaler
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.
If all members are ok with it (mention --v in the CA parameter table) if it somehow helps end users/users then I'm also ok with it.
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 @gjtempleton, WDYT?
| `unremovable-node-recheck-timeout` | The timeout before we check again a node that couldn't be removed before | 5m0s | | ||
| `user-agent` | User agent used for HTTP calls. | "cluster-autoscaler" | | ||
| `v` | number for the log level verbosity | | | ||
| `vmodule` | comma-separated list of pattern=N settings for file-filtered logging (only works for text log format) | | |
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.
Also vmodule
, there is no such flag for CA under main.go
I have one concern not all the flags are in the parameter table(Flags table in FAQ) you mentioned in this PR. I also checked the script locally, it generated the table but not all the flags are there which are mentioned in the CA main.go. One of the flags is Please let me know if I missed something here. |
@Shubham82 Alias
|
Sorry My bad, I forgot to mention the hyphen(-) in the flag name, I have rechecked it locally, and flags are generated from the script. Thanks! |
/remove-area vertical-pod-autoscaler |
/remove-area provider/gce |
Is there any ETA for this PR to be merged? |
What type of PR is this?
/kind feature
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fxies #6981
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: