Skip to content
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

Merged
merged 4 commits into from
Oct 9, 2020

Conversation

esnible
Copy link
Contributor

@esnible esnible commented Oct 7, 2020

Resolves #27797

@esnible esnible requested a review from a team as a code owner October 7, 2020 14:19
@istio-testing istio-testing added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Oct 7, 2020
@google-cla google-cla bot added the cla: yes Set by the Google CLA bot to indicate the author of a PR has signed the Google CLA. label Oct 7, 2020
@esnible esnible requested review from a team as code owners October 7, 2020 14:23
Example: ` # Retrieve information about istiod logging levels.
istioctl istiod-config log [<pod-name>]
Example: ` # Retrieve information about istiod logging levels.
istioctl istiod-config log
Copy link
Member

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 istiod-config <log>`,
Aliases: []string{"idc"},
Example: ` # Retrieve information about istiod configuration.
istioctl istiod-config log`,
Copy link
Member

@shamsher31 shamsher31 Oct 7, 2020

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

Copy link
Contributor Author

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.
Copy link
Member

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?

Copy link
Contributor Author

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.

Copy link
Member

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
Copy link
Member

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

Copy link
Member

@shamsher31 shamsher31 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@istio-testing istio-testing merged commit 4309aed into istio:master Oct 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Set by the Google CLA bot to indicate the author of a PR has signed the Google CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Move 'istioctl istiod-config log' to 'istioctl x istiod log'
5 participants