client/pkg/errors
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
..
errors.go List inbuilt sources if CRD access is restricted (#948) 2020-08-04 04:42:28 -07:00
errors_test.go Report missing kubeconfig or error connecting to cluster (#725) 2020-03-10 03:34:29 -07:00
factory.go List inbuilt sources if CRD access is restricted (#948) 2020-08-04 04:42:28 -07:00
factory_test.go List inbuilt sources if CRD access is restricted (#948) 2020-08-04 04:42:28 -07:00
knerror.go improved create service error message (#312) 2019-08-14 17:10:08 -07:00
knerror_test.go improved create service error message (#312) 2019-08-14 17:10:08 -07:00
types.go improved create service error message (#312) 2019-08-14 17:10:08 -07:00