-
Notifications
You must be signed in to change notification settings - Fork 263
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
kn plugins for eventing sources should be able to extend kn source
group
#814
Comments
/assign @maximilien |
tbh, I thought this would be true only for case where a terminal command would overwrite an built-in command (actually the command on which an "Run" is attached). I suggest to implement this in the generic fashion to just verify that there is no collision on the terminal (sub) command. |
* introduce a list of command group that can be extended (currently only source) * check if plugin main group is in that list and execute, otherwise fail * add e2e test for both plugin that is allowed and not allowed to extend existing group
* introduce a list of command group that can be extended (currently only source) * check if plugin main group is in that list and execute, otherwise fail * add e2e test for both plugin that is allowed and not allowed to extend existing group
* introduce a list of command group that can be extended (currently only source) * check if plugin main group is in that list and execute, otherwise fail * add e2e test for both plugin that is allowed and not allowed to extend existing group
* introduce a list of command group that can be extended (currently only source) * check if plugin main group is in that list and execute, otherwise fail * add e2e test for both plugin that is allowed and not allowed to extend existing group
* introduce a list of command group that can be extended (currently only source) * check if plugin main group is in that list and execute, otherwise fail * add e2e test for both plugin that is allowed and not allowed to extend existing group
* introduce a list of command group that can be extended (currently only source) * check if plugin main group is in that list and execute, otherwise fail * add e2e test for both plugin that is allowed and not allowed to extend existing group
* introduce a list of command group that can be extended (currently only source) * check if plugin main group is in that list and execute, otherwise fail * add e2e test for both plugin that is allowed and not allowed to extend existing group
* introduce a list of command group that can be extended (currently only source) * check if plugin main group is in that list and execute, otherwise fail * add e2e test for both plugin that is allowed and not allowed to extend existing group
* introduce a list of command group that can be extended (currently only source) * check if plugin main group is in that list and execute, otherwise fail * add e2e test for both plugin that is allowed and not allowed to extend existing group
I think there is value to both. Some command group should not allow extensions. For instance adding any sub commands fo
Sure but only for allowed command groups. |
Why ? What's about a |
I would allow it for every group, but forbid to override. |
* fixes(#814) allow plugins to extend the 'source' command group * introduce a list of command group that can be extended (currently only source) * check if plugin main group is in that list and execute, otherwise fail * add e2e test for both plugin that is allowed and not allowed to extend existing group * * move IsAllowedExtensibleCommandGroup to plugin/verifier.go * added tests for the public function * change verifier to use IsAllowedExtensibleCommandGroup to allow plugins for extensible command groups * moved `InAllowedExtensibleCommandGroups` to plugin.go so that it is usable in windows builds
* [release-v0.24.0] Update spec file version * [release-v0.24.0] Add kafka plugin tests
Feature request
Current
kn
plugin architecture prevents plugins to extend existing command groups. This makes sense since we would not want akn-service-create
plugin that redefines theservice create
commands. Same for almost all otherkn
command groups.But there is at least one exception. This is for command groups where we want to define sub-groups but at the same time allow extensions. One such example is the
kn source
eventing command group.Use case
Kn ships with some eventing sources, e.g.,
ping
, but we also want to have plugins be created and defined that also extends this command group, e.g.,source kafka
andsource github
and others.These plugins are being defined in the client-contrib repo for instance the
kn-source-kafka
is one such example.UI Example
The text was updated successfully, but these errors were encountered: