Commit Graph

14 Commits

Author SHA1 Message Date
Kevin Joiner 8110ecfc32 Update fakes to create valid mock controllers.
Generates the fakes package so that the mocks completely implement the
Controllers, Clients and Cache interfaces.
2023-06-29 16:24:29 -04:00
Kevin Joiner 423d848a8f Adds impersonation for clients.
This commit imports new lasso changes to allow users to create a new
client that impersonates requests for specified user.
2023-06-29 16:24:29 -04:00
Kevin Joiner 01ecd49211 Add test to Controller implemented Client methods. 2023-03-08 10:07:39 -05:00
Kevin Joiner fc1fea5cad Add fake package for creating generic mocks for controllers, Clients, and Caches.
To support easy mocking generic interfaces were added for controllers and caches.
And generated code now uses these interfaces instead of the generic structure.
This commit also adds code comments to the generated interfaces, and a README for the fake package.
2023-03-03 12:25:50 -05:00
Kevin Joiner 8a99fb5ad2 Refactor generated controllers and caches to call the generic functions.
Moved Controler and Cache implmentations from template strings in ype_go.go
to generic/controller.go and generic/cache.go. The generation
of type specific interface was left so that dependent packages do not
experince any breaking changes.
2023-03-03 12:15:32 -05:00
Darren Shepherd 464d24debe Lasso refactor 2020-04-15 22:19:21 -07:00
Darren Shepherd 2673c595f2 Real watch events should never be rate limited 2020-03-01 21:34:49 -07:00
Darren Shepherd 2044a7b2bb Add status handler and generating handlers 2019-10-14 10:15:49 -07:00
Darren Shepherd 901068548f Don't require Kind/APIVersion to be set for object to passed to apply 2019-06-11 17:22:32 -07:00
Luther Monson 0c46053be2 removing klog, updating license 2019-05-17 11:55:29 -07:00
Daishan Peng f708acec84 multiple fixes 2019-04-19 09:16:57 -07:00
Darren Shepherd a6b17de10a Move norman frameworks to wrangler 2019-03-28 11:47:54 -07:00
Darren Shepherd 22a25c82ff Make handlers removable 2019-03-19 10:40:01 -07:00
Darren Shepherd bf4c2244c0 Initial Commit 2019-03-18 23:41:27 -07:00