client/pkg
Navid Shaikh cc1b68e068
List inbuilt sources if CRD access is restricted (#948)
* List inbuilt sources if CRD access is restricted

 Fixes #947
 - Identify restricted access error
 - If server returns restricted access error, fallback to listing
   only eventing inbuilt sources using their GVKs.
 - List any inbuilt source (ApiServerSource) object and read the error
   to know if eventing is installed for `kn source list-types`.

* Fix golint warnings

* Remove unused imports

* Verify each built in source before listing source types

* Improve the check if sources are not installed in the cluster

* Update finding forbidden error

* Update finding errors

* Add unit tests for IsForbiddenError util

* Add unit tests

* Add tests for dynamic pkg library

* Add unit tests for case when no sources are installed

* Update test name
2020-08-04 04:42:28 -07:00
..
apis/client add kn export type (#856) 2020-06-18 02:33:25 -07:00
dynamic List inbuilt sources if CRD access is restricted (#948) 2020-08-04 04:42:28 -07:00
errors List inbuilt sources if CRD access is restricted (#948) 2020-08-04 04:42:28 -07:00
eventing/v1beta1 kn v0.16.0 release prep (#922) 2020-07-10 10:41:19 -07:00
kn List inbuilt sources if CRD access is restricted (#948) 2020-08-04 04:42:28 -07:00
printers Fix error when output is set to name (#775) 2020-04-13 21:58:15 -07:00
serving Update CHANGELOG and error for port flag parsing (#926) 2020-07-12 12:48:08 -07:00
sources/v1alpha2 List inbuilt sources if CRD access is restricted (#948) 2020-08-04 04:42:28 -07:00
templates feat: Add plugin listing to "kn --help" (#929) 2020-07-14 13:38:33 -07:00
util Add --ce-override flag for apiserver and ping sources (#865) 2020-06-01 02:39:03 -07:00
wait fix(wait): Only use MODIFIED events when waiting for Read == True (#701) 2020-03-04 13:38:54 -08:00