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

feat(serviceaccount describe): add describe command #406

Merged
merged 1 commit into from
Mar 2, 2021

Conversation

rkpattnaik780
Copy link
Contributor

@rkpattnaik780 rkpattnaik780 commented Mar 2, 2021

serviceaccount describe subcommand has been added to display configuration details of a specific service account.

fixes #335

Screenshot from 2021-03-02 12-20-15

Copy link
Contributor

@craicoverflow craicoverflow left a comment

Choose a reason for hiding this comment

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

LGTM!

res, _, apiErr := a.Execute()

if apiErr.Error() != "" {
return fmt.Errorf("%v: %w", localizer.MustLocalizeFromID("serviceAccount.describe.error.unableToDescribe"), apiErr)
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we need to handle service account API errors better, because this just prints the status code.

This is happening in all service account commands though, so it is a separate task.

#408

@wtrocki
Copy link
Collaborator

wtrocki commented Mar 2, 2021

Requires rebase.

@rkpattnaik780 rkpattnaik780 force-pushed the serviceaccount_describe branch from 764046c to 8293551 Compare March 2, 2021 11:47
@rkpattnaik780 rkpattnaik780 merged commit da63580 into main Mar 2, 2021
@rkpattnaik780 rkpattnaik780 deleted the serviceaccount_describe branch March 2, 2021 11:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a serviceaccount describe --id command
3 participants