client/pkg/kn/commands
Roland Huß 164cb5f362
feature(source binding): Support for Sink Binding as source (#625)
* feature(source binding): Support for Sink Binding as source

Sink bindings are managed like any other source. Sinks are specified as usual (with prefix and name),
'subjects' (the other end of the binding) is managed via a shortcut notation:

* with name: `<kind>:<apiVersion>:<name>`
* with label selector: `<kind>:<apiVersion>:key1=value1,key2=value2`

With `--subject-namespace` and additional namespace can be provided (shoudl be possible for a sink, too but is not yet)

The implementation already uses the new sink binding from the `sources.knative.dev` group
and hence is a bit inconsistent to the still old usage kf `sources.eventing.knative.dev` for apiserver source and cronjob.

However as we will move over to `sources.knative.dev` very soon (right after v0.12.0) release,
this is was more appropriates.

Still WIP, but eventually fixes #624

Task list:

- [X] create
- [] update
- [] delete
- [] describe
- [] list

* fix(source binding): Added missing commands

Also, it looks like that knative eventing 0.12.0 is still on the old api group.
So I need to move this code to use the legacyclient, too, for the sink binding
and only switch over to the new client for 0.13.0

* feature(source binding): Added missing subcommands

* update
* delete
* list
* describe

* fix(source binding): Removed --subject-namespace as this namespace cant b set.

Tuned describe output a bit.

* feat(source binding) add support for CeOverride

* fix: Worked on review comments

* fix: review comments

* fix: names in binding client
2020-01-29 12:08:27 -08:00
..
completion Add completion to help message (#478) 2019-11-12 01:32:23 -08:00
flags feature(source binding): Support for Sink Binding as source (#625) 2020-01-29 12:08:27 -08:00
plugin load config values from viper if present in config (#468) 2019-12-19 02:24:31 -08:00
revision feature(serving): Add --autoscale-window (#614) 2020-01-22 00:18:23 -08:00
route Use the same list flags for list_type, service and route (#582) 2019-12-20 04:50:33 -08:00
service Add --pull-secret flag (#617) 2020-01-22 06:57:25 -08:00
source feature(source binding): Support for Sink Binding as source (#625) 2020-01-29 12:08:27 -08:00
trigger feature(source binding): Support for Sink Binding as source (#625) 2020-01-29 12:08:27 -08:00
version Vendor serving v0.12.0 (#618) 2020-01-22 00:48:23 -08:00
describe.go Human-readable revision describe (#475) 2019-11-05 17:43:02 -08:00
describe_test.go Human-readable revision describe (#475) 2019-11-05 17:43:02 -08:00
human_readable_flags.go feature(source binding): Support for Sink Binding as source (#625) 2020-01-29 12:08:27 -08:00
namespaced.go update the description of flag namespace (#419) 2019-09-30 01:12:51 -07:00
namespaced_test.go fix lint errors (#388) 2019-08-24 22:46:13 -07:00
testing_helper.go migrate to the new eventing legacy client (#621) 2020-01-21 23:15:23 -08:00
testing_helper_test.go migrate to the new eventing legacy client (#621) 2020-01-21 23:15:23 -08:00
types.go feature(source binding): Support for Sink Binding as source (#625) 2020-01-29 12:08:27 -08:00
types_test.go Add ApiServer source update and describe commands (#556) 2019-12-16 09:42:01 -08:00
wait_flags.go fix(service): Set default timeout for update to the same value as for create (#446) 2019-10-16 04:51:15 -07:00
wait_flags_test.go feature(service): Wait on update for service to become ready. (#271) 2019-07-22 10:52:35 -07:00