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 --dry-run option to "oc adm groups new" #19811
add --dry-run option to "oc adm groups new" #19811
Conversation
cd49de5
to
c3bfddc
Compare
/retest |
c3bfddc
to
5e69459
Compare
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.
/lgtm
/approve
You'll need to update completions and figure out why that new cmd test fails (line 121), it's weird though ;)
/retest Please review the full test history for this PR and help us cut down flakes. |
test/cmd/admin.sh
Outdated
@@ -117,6 +117,11 @@ echo "certs: ok" | |||
os::test::junit::declare_suite_end | |||
|
|||
os::test::junit::declare_suite_start "cmd/admin/groups" | |||
# test --dry-run flag for this command | |||
os::cmd::expect_success_and_text 'oc adm groups new mygroup --dry-run' 'group "mygroup" created (dry run)' |
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.
Need to escape parentheses \(dry run\)
/retest Please review the full test history for this PR and help us cut down flakes. |
5e69459
to
706006c
Compare
764afbf
to
d1638d8
Compare
d1638d8
to
74306d1
Compare
@juanvallejo do want to land this before we get there with our re-factors or we'll pick it up during those? |
I think we can land it now, will rebase |
74306d1
to
b7a249b
Compare
@soltysh rebased |
b7a249b
to
04fcd4f
Compare
The error: test/integration/groups_test.go:193:10: cannot use func literal (type func("github.com/openshift/origin/vendor/k8s.io/apimachinery/pkg/runtime".Object, "io".Writer) error) as type printers.ResourcePrinter in field value:
func("github.com/openshift/origin/vendor/k8s.io/apimachinery/pkg/runtime".Object, "io".Writer) error does not implement printers.ResourcePrinter (missing PrintObj method) looks relevant. |
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.
/lgtm
Feel free to re-tag once you fix that integration compile error
04fcd4f
to
12ffdac
Compare
/retest |
12ffdac
to
9a716a4
Compare
f4a0f63
to
fdede35
Compare
/retest |
a670d96
to
5a4b961
Compare
5a4b961
to
fe6975d
Compare
fe6975d
to
f915be1
Compare
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.
/lgtm
/approve
userapi "github.com/openshift/origin/pkg/user/apis/user" | ||
userclientinternal "github.com/openshift/origin/pkg/user/generated/internalclientset" | ||
usertypedclient "github.com/openshift/origin/pkg/user/generated/internalclientset/typed/user/internalversion" | ||
userapiv1 "github.com/openshift/api/user/v1" |
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.
@juanvallejo yeah, we'll need to sweep them afterwards, I want to get these pulls in asap.
[APPROVALNOTIFIER] This PR is APPROVED Approval requirements bypassed by manually added approval. This pull-request has been approved by: juanvallejo, soltysh 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 |
Adds a --dry-run option to
oc adm groups new
Fixes #14807
cc @soltysh