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

Create command 'rosa list user-roles' #596

Merged
merged 1 commit into from
Feb 9, 2022

Conversation

oriAdler
Copy link
Contributor

@oriAdler oriAdler commented Feb 8, 2022

The new command is implemented similarly to the rosa list ocm-roles command.
The code checks if a role name contains the User infix and in addition,
checks if the role has the tag rosa_role_type: User, because 'user' is a common word.

image

Related: SDA-5412

@oriAdler
Copy link
Contributor Author

oriAdler commented Feb 8, 2022

cmd/list/cmd.go Outdated Show resolved Hide resolved
pkg/ocm/client.go Outdated Show resolved Hide resolved
pkg/ocm/helpers.go Outdated Show resolved Hide resolved
cmd/list/userroles/cmd.go Outdated Show resolved Hide resolved
@oriAdler oriAdler marked this pull request as draft February 8, 2022 15:46
@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Feb 8, 2022
@oriAdler oriAdler force-pushed the list-user-roles branch 4 times, most recently from fc048e6 to 03d5f51 Compare February 9, 2022 08:56
@oriAdler oriAdler marked this pull request as ready for review February 9, 2022 09:01
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Feb 9, 2022
@openshift-ci openshift-ci bot requested review from igoihman and tbrisker February 9, 2022 09:02
@oriAdler oriAdler requested review from zgalor and pvasant February 9, 2022 09:04
pkg/ocm/helpers.go Outdated Show resolved Hide resolved
cmd/list/userroles/cmd.go Outdated Show resolved Hide resolved
The new command is implemented similarly to the `rosa list ocm-roles` command.
The code checks if a `role name` contains the `User` infix, and in addition,
checks if the role has the tag `rosa_role_type: User`, because 'user' is a common word.

Related: SDA-5412
@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Feb 9, 2022
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 9, 2022

@oriAdler: all tests passed!

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@pvasant
Copy link
Contributor

pvasant commented Feb 9, 2022

/lgtm

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 9, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: oriAdler, pvasant

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 9, 2022
@openshift-merge-robot openshift-merge-robot merged commit 8694472 into openshift:master Feb 9, 2022
@oriAdler oriAdler deleted the list-user-roles branch February 10, 2022 08:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants