-
Notifications
You must be signed in to change notification settings - Fork 10
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 machineinfo command #35
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: fromanirh 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 |
799ab39
to
e59a23a
Compare
e59a23a
to
c0ced21
Compare
c0ced21
to
75aafec
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.
I am generally ok with the tool, I would just like to see a bit more verbose description of the relocatablesysfs purpose or even examples
75aafec
to
fef3c8a
Compare
}, | ||
Args: cobra.MaximumNArgs(1), | ||
} | ||
mInfo.Flags().BoolVarP(&opts.handle.RawOutput, "raw-output", "X", false, "include machine-identifiable data") |
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.
what is BoolVarP with the P ?
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.
how do we get the list of all the available commands ? only via CLI ? or are we going to expose some sort of documentation for that as well ? |
Yep, via CLI. The idea is to keep the CLI as living documentation
|
// derived from https://github.com/google/cadvisor/blob/master/utils/sysfs/sysfs.go @ ef7e64f9 | ||
// as Apache 2.0 license allows. | ||
|
||
// relocatablesysfs allows to consume a sysfs tree whose root is not `/sys`. |
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.
Would moving this close to the struct definition allow proper golang docs to be generated (eventually or locally?)
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 can, but we don't have a godoc reference yet. Docstrings are pretty scattered. Anyway, let me start with this.
It's very useful to get the same picture as the kubelet will. Signed-off-by: Francesco Romani <[email protected]>
fef3c8a
to
bae6c18
Compare
It's very useful to get the same picture as the kubelet will.
Signed-off-by: Francesco Romani [email protected]