1. remove the feature redundant name in all feature controllers(e.g.
'federatedlearningJob' to 'job'), since it has already own independent
package, no need the feature extra name
2. upstream interface optimizaztion
3. fix empty Kind of all CR in downstream
4. add extra doc string
5. fix code style
Signed-off-by: llhuii <liulinghui@huawei.com>
Make all controllers sharing with:
1. kubernetes client, and informerFactory with random resync period.
2. sedna crd client, and informerFactory with random resync period.
This can reduce code and improve slim performance.
Signed-off-by: llhuii <liulinghui@huawei.com>
All controllers are placed into globalmanager/controllers:
1. each feature has the independent subdirectory
2. upstream/downstream are kept as top level.
Commom types/utils/worker.go are placed into globalmanager/runtime.
Signed-off-by: llhuii <liulinghui@huawei.com>