-
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
Enable CLI plugins in oc #15717
Enable CLI plugins in oc #15717
Conversation
/unassign |
1cb17a3
to
607f80b
Compare
/retest |
flaked on #8571 |
sorry, I don't know why this was assigned to me or how I can help with it |
yeah, likewise. (well, I know it was assigned to me because this includes tests and i'm listed as an approver in some subdirs of test/, but that seems like a bug in the assigning mechanism) /unassign |
/assign @juanvallejo @liggitt @smarterclayton |
@@ -71,3 +81,33 @@ func (p Plugin) IsValid() bool { | |||
|
|||
// Plugins is a list of plugins. | |||
type Plugins []*Plugin | |||
|
|||
// Flag describes a single flag supported by a given plugin. | |||
type Flag struct { |
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.
@fabianofranz would it be worth having an interface for this and for Plugin
?
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.
I couldn't think of any use case where there would be different implementations of these guys, so I don't think it's worth at the moment. ;)
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.
Sounds good to me
One minor comment, but otherwise this lgtm from a cli perspective |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: fabianofranz, smarterclayton The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
/test all [submit-queue is verifying that this PR is safe to merge] |
@fabianofranz: The following tests failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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. |
Automatic merge from submit-queue (batch tested with PRs 15717, 15947) |
Trello story: https://trello.com/c/o6UiTkxv
Adds support to CLI plugins under the
oc plugin
command. Basically the same functionality and same subcommand already present upstream.This is required for enabling the service catalog commands under
oc
, which will be distributed as plugins.@liggitt one upstream commit for a feature that didn't make the 1.7 cut upstream
@openshift/cli-review @smarterclayton prease review
@sspeiche @pmorie FYI