Jake Hyde
7113b21724
Update Deprecated comment in controller template
...
Deprecated comments should begin with "Deprecated:" so it is recognized
by modern linters.
2022-06-10 18:30:15 -04:00
Darren Shepherd
1f8e5372ca
Ensure namespaced scoped listers default to the correct namespace
2020-08-26 17:44:45 -07:00
Darren Shepherd
d8c3e21805
Ensure controller is scoped to namespace
2020-08-26 15:33:30 -07:00
Darren Shepherd
31e64b1a62
Updates to generator to improve speed
2020-07-14 12:26:39 -07:00
Darren Shepherd
4b0a7e6b91
Rebase on lasso
2020-05-16 21:59:53 -07:00
Darren Shepherd
fb2d75a6b8
Remove unused interfaces
2020-02-05 21:16:03 -07:00
Darren Shepherd
202dd06a36
Add EnqueueAfter
2020-02-05 21:16:03 -07:00
nanorobocop
8a250ebde2
Add ListNamespaced method for ObjectClient
2019-11-06 11:22:11 +09:00
Dax McDonald
1fff189de5
Remove PutClusterScoped from controllers
2019-08-21 13:45:52 -07:00
rmweir
2da1bd2ffc
Add enable function and addFeature functions
...
Added enable function to schemas. This allows filtering of schemas
which is a required part of feature flagging in rancher. Added
addFeature functions to controller template for adding handlers that
can be disabled if their associated feature is disabled.
2019-07-02 12:18:40 -07:00
dax
f5744043a6
Refactor set of cluster scoped handlers
...
Problem: Cluster scoped gc was taking significantly longer to complete
than before 7387aa5
. This was due to a large number of list calls and
the time needed to iterate over them.
Solution: Instead of requesting every type than Rancher uses, a
seperate map appended to when a cluster scoped handler
is created. The full map of all GroupVersionResources is kept as a
fallback for the use case where user controllers may exist on another
host other than the current leader.
2019-05-28 18:48:15 -07:00
dax
7387aa53a5
Record cluster scoped handlers
...
Problem: Cluster scoped handlers were not being cleaned up without
manually writing garbage collection functions.
Solution: All cluster scoped handlers will be recorded in a global map
in a generic format so that they can be removed by a generic function.
2019-04-23 12:25:39 -07:00
Guilhem Lettron
9d7a35cf47
Add json:items to list objects
...
Fix apimachinery work on list objects
ef51ab1605/pkg/runtime/conversion.go (L46)
:6
2019-04-08 13:27:10 +02:00
Darren Shepherd
4350a8688b
Add Interface to Clients
2018-12-17 15:44:50 -07:00
Darren Shepherd
a20e5736da
Fix patch to require patchtype parameter
2018-12-17 15:43:21 -07:00
Darren Shepherd
9c8de64358
Add type constructors to make things a bit nicer
2018-12-17 15:43:21 -07:00
Darren Shepherd
f1c772b7f1
Fix bugs in lifecycle
2018-11-26 10:46:27 -07:00
Darren Shepherd
a036721900
New client style
2018-11-26 08:43:27 -07:00
Darren Shepherd
fa4bdda91b
Switch handler return type to runtime.Object
2018-11-06 09:55:18 -07:00
Darren Shepherd
77869d26b3
Handlers return object and error
2018-10-30 09:57:37 -07:00
Darren Shepherd
a5698a8e86
Add method to client to get GenericController
2018-09-24 09:00:20 -07:00
Dan Ramich
12c3f92bed
Revert changes to template for controllers
2018-08-23 14:48:08 -07:00
Dan Ramich
0953e9e976
Update template to include created label
2018-07-25 09:31:30 -07:00
Alena Prokharchyk
d7ac071df7
Include namespace to not found msg
2018-07-11 16:33:48 -07:00
Darren Shepherd
ff60298f31
Move ObjectClient to different package
2018-04-03 14:09:16 -07:00
Darren Shepherd
e4d341fa65
Switch args in namespace methods
2018-01-18 23:41:45 +00:00
Craig Jellick
905797b50f
Add suport for cluster scoped controllers
...
Some worload controllers need to watch resoruces in the mangement plane
and react to them. But, they should only react to resources that
correspond to their cluster. This adds framework support for that.
2018-01-16 09:04:15 -07:00
Darren Shepherd
af105c2bc7
Add name to handlers
2018-01-16 05:10:36 +00:00
Darren Shepherd
6c007d23ef
Add GetNamespace and DeleteNamespace calls
2017-12-29 22:23:14 +00:00
Darren Shepherd
10aa5a70b0
Add Patch to clients
2017-12-22 23:19:30 -07:00
Darren Shepherd
774304612e
Add util methods to client
2017-12-16 01:30:46 -07:00
Craig Jellick
b92477719d
Properly namespace key on lookup
2017-12-11 20:25:05 -07:00
Darren Shepherd
15e105a0ab
Refactor types
2017-11-29 14:27:02 -07:00
Darren Shepherd
9ae8c8e1a7
Fix imports
2017-11-28 15:59:04 -07:00
Darren Shepherd
c93f63f15e
Fix imports
2017-11-28 14:53:16 -07:00
Darren Shepherd
389d27b3e5
Updates
2017-11-28 14:28:25 -07:00
Darren Shepherd
59d2d58c3e
Fix code generator
2017-11-21 16:16:52 -07:00
Darren Shepherd
7444e056f7
Change ObjectMeta to ListMeta
2017-11-13 14:27:53 -07:00
Darren Shepherd
9cb51e9a46
Generate clients in clientset style
2017-11-13 12:50:25 -07:00
Darren Shepherd
591b663b2d
Changes to generator for deepcopygen
2017-11-11 17:07:09 -07:00
Darren Shepherd
c8cab3f4f8
More initial dev
2017-11-10 21:46:30 -07:00