-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
add affirmative output to oc policy / oadm policy #12324
add affirmative output to oc policy / oadm policy #12324
Conversation
[test] |
Can probably ditch the "successfully" prefix. |
Hm, it sounds a bit off if it outputs |
conformance check flaked on #11662 re[test] |
@liggitt PTAL |
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.
Agree it seems a little verbose
|
||
// prints affirmative output for role modification commands | ||
func printSuccessForCommand(role string, didAdd bool, targetName string, targets []string, isNamespaced bool, out io.Writer) { | ||
preposition := "from" |
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 string building isn't going to play nice with translation efforts
@liggitt @stevekuznetsov shortened the output to read:
will update tests if this reads okay |
Sounds fine, it mirrors the output from |
f8e1faa
to
517bb93
Compare
@stevekuznetsov Thanks for the feedback, will leave slices with |
@fabianofranz ptal |
LGTM, holding the merge until rebase lands. |
517bb93
to
ef01748
Compare
[merge] |
merge check flaked on #11024 re[test] |
conformance flaked on #12184 re[test] |
re[merge] |
ef01748
to
303f7e7
Compare
This patch adds affirmative output to commands that modify cluster and local roles for users and groups. **Examples** ``` $ oadm policy remove-cluster-role-from-group self-provisioner system:authenticated:oauth system:authenticated Successfully removed the "self-provisioner" cluster role from groups ["system:authenticated:oauth" "system:authenticated"]. $ oadm policy add-cluster-role-to-group self-provisioner system:authenticated:oauth Successfully added the "self-provisioner" cluster role to group "system:authenticated:oauth". $ oc policy add-role-to-user cluster-admin testuser Successfully added the "cluster-admin" role to user "testuser". $ oc policy remove-role-from-user cluster-admin testuser Successfully removed the "cluster-admin" role from user "testuser". ```
303f7e7
to
6009e22
Compare
test flaked on #11887 re[test] |
Evaluated for origin test up to 6009e22 |
continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/12849/) (Base Commit: 398ca1a) |
[merge] |
continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/12849/) (Image: devenv-rhel7_5690) |
flaked on #11016 re[merge] |
Evaluated for origin merge up to 6009e22 |
fixes: #12284
This patch adds affirmative output to commands that modify cluster and
local roles for users and groups.
Examples
@openshift/cli-review