Skip to content

feat(serviceaccount describe): add describe command#406

Merged
rkpattnaik780 merged 1 commit intomainfrom
serviceaccount_describe
Mar 2, 2021
Merged

feat(serviceaccount describe): add describe command#406
rkpattnaik780 merged 1 commit intomainfrom
serviceaccount_describe

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