-
Notifications
You must be signed in to change notification settings - Fork 7.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
Move 'istioctl istiod-config log' to 'istioctl experimental istiod log' #27799
Move 'istioctl istiod-config log' to 'istioctl experimental istiod log' #27799
Conversation
istioctl/cmd/istiodconfig.go
Outdated
Example: ` # Retrieve information about istiod logging levels. | ||
istioctl istiod-config log [<pod-name>] | ||
Example: ` # Retrieve information about istiod logging levels. | ||
istioctl istiod-config log |
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 think the example needs to be updated to use.
istioctl experimental istiod log
istioctl/cmd/istiodconfig.go
Outdated
istioctl istiod-config <log>`, | ||
Aliases: []string{"idc"}, | ||
Example: ` # Retrieve information about istiod configuration. | ||
istioctl istiod-config log`, |
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 there 2 different commands or there is only one?
- istioctl x istiod log
- istioctl x istiod-config log
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.
Only one.
Example: ` # Retrieve information about istiod logging levels. | ||
istioctl experimental istiod log | ||
|
||
# Retrieve information about istiod logging levels on a specific control plane pod. |
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.
Not sure if this is right, from the command it looks like that it can only get the logs of the istiod
pod? or is this means that this can work with multiple revisions of the control plane?
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.
This command can only get/set the log level of an istiod pod.
It would be better if it worked differently, for example if it took a --revision <revision>
and used that to match for istio.io/rev=<revision>
. It would also be better if it set the level on ALL matching pods, not just one of them.
This work item is just about moving the command, not improving 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.
Sounds good.
|
||
# Reset levels of all the loggers to default value (info). | ||
istioctl istiod-config log -r | ||
istioctl x istiod log -r |
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.
can you also add an example with aliases?
istioctl x istiod l istiod-5c868d8bdd-pmvgg
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.
LGTM
Resolves #27797