Mohamed ElSerngawy
bdc3007055
Rename placeManifestWork to manifestWorkReplicaSet ( #187 )
...
* Rename placeManifestWork to manifestWorkReplicaSet
Signed-off-by: melserngawy <melserng@redhat.com >
* Rename apis and variables
Signed-off-by: melserngawy <melserng@redhat.com >
---------
Signed-off-by: melserngawy <melserng@redhat.com >
2023-03-01 02:44:49 +01:00
Zhiwei Yin
9a872ebcd7
the manifest size limit can be configured ( #186 )
...
Signed-off-by: Zhiwei Yin <zyin@redhat.com >
2023-02-28 15:50:58 +01:00
Mohamed ElSerngawy
4c46957b53
Add validate webhook ( #182 )
...
Signed-off-by: melserngawy <melserng@redhat.com >
2023-02-15 01:34:25 -05:00
Mohamed ElSerngawy
8dd52acfae
Add create,update and delete placeManifestWork ( #177 )
...
Signed-off-by: melserngawy <melserng@redhat.com >
2023-02-06 20:23:44 -05:00
Jian Qiu
e7fd0453dd
Split logic of controller to multiple reconcilers ( #176 )
...
This could make code clearer
also update the crd fix
Signed-off-by: Jian Qiu <jqiu@redhat.com >
Signed-off-by: Jian Qiu <jqiu@redhat.com >
2023-01-16 16:44:26 -05:00
Jian Qiu
17031158f6
Add informer setup for placemanifestwork ( #175 )
...
- add index and informer to watch resources
- build binary for hub manager
Signed-off-by: Jian Qiu <jqiu@redhat.com >
Signed-off-by: Jian Qiu <jqiu@redhat.com >
2023-01-12 15:53:45 -05:00
Mohamed ElSerngawy
c3fd69968b
Add inital skeleton for placeManifestWork controller ( #171 )
...
* Add inital skeleton for placeManifestWork controller
Signed-off-by: melserngawy <melserng@redhat.com >
* Update vendor
Signed-off-by: melserngawy <melserng@redhat.com >
* fix pkgs
Signed-off-by: melserngawy <melserng@redhat.com >
Signed-off-by: melserngawy <melserng@redhat.com >
2023-01-09 20:45:46 -05:00
Wei Liu
e0a940cab0
clear the comments for deleting unmanaged appliedmanifestworks ( #174 )
...
Signed-off-by: Wei Liu <liuweixa@redhat.com >
Signed-off-by: Wei Liu <liuweixa@redhat.com >
2023-01-05 21:56:02 -05:00
Wei Liu
5417cc44c9
delete old applied work after its new work is applied ( #172 )
...
Signed-off-by: Wei Liu <liuweixa@redhat.com >
Signed-off-by: Wei Liu <liuweixa@redhat.com >
2023-01-02 20:36:02 -05:00
Jian Qiu
5b740461ad
Reduce default sync interval to 10s ( #167 )
...
Signed-off-by: Jian Qiu <jqiu@redhat.com >
Signed-off-by: Jian Qiu <jqiu@redhat.com >
2022-12-01 02:42:26 -05:00
Jian Zhu
1a95b77fee
Delete resource even if it has non-appliedmanifestwork owners ( #170 )
...
* Delete resource even if it has non-appliedmanifestwork owners
Signed-off-by: zhujian <jiazhu@redhat.com >
* Make tests easier to debug
Signed-off-by: zhujian <jiazhu@redhat.com >
Signed-off-by: zhujian <jiazhu@redhat.com >
2022-12-01 02:11:29 -05:00
Jian Zhu
922fbd90c3
cache the executor validation results ( #165 )
...
* cache the executor validation results
Signed-off-by: zhujian <jiazhu@redhat.com >
* move executor cache controller to auth package
Signed-off-by: zhujian <jiazhu@redhat.com >
* add a binding resource executor mapper to process delete event
Signed-off-by: zhujian <jiazhu@redhat.com >
* initialize caches before starting the cache controller
Signed-off-by: zhujian <jiazhu@redhat.com >
* read enable executor caches from flag
Signed-off-by: zhujian <jiazhu@redhat.com >
* add unit tests for cache store
Signed-off-by: zhujian <jiazhu@redhat.com >
* add unit tests for cache validator
Signed-off-by: zhujian <jiazhu@redhat.com >
* add unit tests for cache controller
Signed-off-by: zhujian <jiazhu@redhat.com >
* read enable executor caches from feature gate
Signed-off-by: zhujian <jiazhu@redhat.com >
* add integration tests for cache controller
Signed-off-by: zhujian <jiazhu@redhat.com >
* add a description doc for the cache package
Signed-off-by: zhujian <jiazhu@redhat.com >
Signed-off-by: zhujian <jiazhu@redhat.com >
2022-11-22 03:03:37 -05:00
DangPeng Liu
3c6511bca9
set min tls version ( #166 )
...
Signed-off-by: ldpliu <daliu@redhat.com >
Signed-off-by: ldpliu <daliu@redhat.com >
2022-11-16 07:28:29 +00:00
DangPeng Liu
467124210c
use controller runtime to implement webhook ( #164 )
...
Signed-off-by: ldpliu <daliu@redhat.com >
Signed-off-by: ldpliu <daliu@redhat.com >
2022-11-06 22:14:16 -05:00
Jian Qiu
f147a7c53e
Delete unmanaged AppliedManifestWork ( #161 )
...
* Delete unmanaged AppliedManifestWork
Signed-off-by: Jian Qiu <jqiu@redhat.com >
* Add integration test
Signed-off-by: Jian Qiu <jqiu@redhat.com >
Signed-off-by: Jian Qiu <jqiu@redhat.com >
2022-11-04 01:26:29 -04:00
Jian Zhu
6820f68d81
check the executor subject permission for delete ( #160 )
...
Signed-off-by: zhujian <jiazhu@redhat.com >
Signed-off-by: zhujian <jiazhu@redhat.com >
2022-10-10 03:21:06 +02:00
Jian Zhu
3947bd293b
check escalation for executor subject ( #159 )
...
Signed-off-by: zhujian <jiazhu@redhat.com >
Signed-off-by: zhujian <jiazhu@redhat.com >
2022-09-29 05:42:18 +02:00
Jian Zhu
60d622078b
validate manifest work executor permission on hub cluster ( #158 )
...
* validate manifest work executor permission on hub cluster
Signed-off-by: zhujian <jiazhu@redhat.com >
* do not validate the executor when it is not changed
Signed-off-by: zhujian <jiazhu@redhat.com >
Signed-off-by: zhujian <jiazhu@redhat.com >
2022-09-28 05:43:05 +02:00
Jian Zhu
78c39cf7fb
check the executor subject permission for action apply ( #152 )
...
* check work execution permission
Signed-off-by: zhujian <jiazhu@redhat.com >
* Move requeue time in auth package
Signed-off-by: zhujian <jiazhu@redhat.com >
* fix flaky test
Signed-off-by: zhujian <jiazhu@redhat.com >
Signed-off-by: zhujian <jiazhu@redhat.com >
2022-09-15 03:22:04 +02:00
Jian Zhu
2a7edddede
Fix nil pointer panic ( #157 )
...
Signed-off-by: zhujian <jiazhu@redhat.com >
Signed-off-by: zhujian <jiazhu@redhat.com >
2022-09-09 04:58:42 +02:00
TYTaO
6a0f69fd47
fix Missing filter ( #151 )
...
Signed-off-by: tytao <1522014784@qq.com >
Signed-off-by: tytao <1522014784@qq.com >
2022-09-01 22:34:41 +02:00
Jian Zhu
787d7c5d45
move apply method to seperate package ( #149 )
...
* move apply method to seperate package
Signed-off-by: Jian Qiu <jqiu@redhat.com >
* make sure the update apply func returns existing object
Signed-off-by: zhujian <jiazhu@redhat.com >
Signed-off-by: Jian Qiu <jqiu@redhat.com >
Signed-off-by: zhujian <jiazhu@redhat.com >
Co-authored-by: Jian Qiu <jqiu@redhat.com >
2022-08-29 04:10:16 -04:00
Jian Qiu
1a7686ee47
support update strategy in manifestwork ( #139 )
...
* Add ssa strategy
Signed-off-by: Jian Qiu <jqiu@redhat.com >
* Add test cases
Signed-off-by: Jian Qiu <jqiu@redhat.com >
* Resolve comments
Signed-off-by: Jian Qiu <jqiu@redhat.com >
* Use default manager in api repo
Signed-off-by: Jian Qiu <jqiu@redhat.com >
* Refatcor deleteOption
patch ownerref separately for deleteOption
Signed-off-by: Jian Qiu <jqiu@redhat.com >
* Do not reconcile when ssa conflict
Signed-off-by: Jian Qiu <jqiu@redhat.com >
2022-07-07 02:09:42 +00:00
DangPeng Liu
6f534125a7
update default qps for webhook ( #141 )
...
Signed-off-by: ldpliu <daliu@redhat.com >
2022-06-20 08:22:24 +00:00
Jian Qiu
ae6b2c5ac6
Refector apply manifest code ( #138 )
...
This is for the preparation of futher enhancement
in work
Signed-off-by: Jian Qiu <jqiu@redhat.com >
2022-05-31 06:07:28 -04:00
Jian Qiu
a7145fd2b5
Add lint check in make verify ( #135 )
...
Signed-off-by: Jian Qiu <jqiu@redhat.com >
2022-05-09 00:53:03 -04:00
Mike Ng
70d6369be4
Remove unreachable redundant err check. ( #134 )
...
Signed-off-by: Mike Ng <ming@redhat.com >
2022-05-06 20:54:09 -04:00
Jian Zhu
9e9e6b2eb6
Keep the finalizers unchanged for unstructured ( #128 )
...
* Merge finalizer for unstructured
Signed-off-by: zhujian <jiazhu@redhat.com >
* Keep the finalizers unchanged
Signed-off-by: zhujian <jiazhu@redhat.com >
* Add test for keeping the finalizers unchanged
Signed-off-by: zhujian <jiazhu@redhat.com >
2022-04-02 05:12:34 -04:00
Jian Qiu
018d51a596
Merge label and annotation for unstructured ( #126 )
...
Signed-off-by: Jian Qiu <jqiu@redhat.com >
2022-03-30 00:10:41 -04:00
Jian Qiu
a042fb22cc
Disable apf in webhook ( #120 )
...
Signed-off-by: Jian Qiu <jqiu@redhat.com >
2022-03-23 04:16:31 +01:00
Jian Qiu
61c038e3f3
some code refactor ( #118 )
...
1. use resourceIdentifier to track resource
2. pass context for deleteAppliedResource
Signed-off-by: Jian Qiu <jqiu@redhat.com >
2022-02-25 02:52:47 -05:00
Zhiwei Yin
f5ca2e6751
add job and pod wellknownStatusRules ( #113 )
...
Signed-off-by: Zhiwei Yin <zyin@redhat.com >
2022-01-29 02:30:25 -05:00
Jian Qiu
4334762add
Add disable leader election flag ( #109 )
...
Signed-off-by: Jian Qiu <jqiu@redhat.com >
2022-01-17 22:16:05 -05:00
Jian Qiu
5d86a958cb
Update go to 1.17 ( #108 )
...
* Add interested field (#107 )
* Add interested field
Signed-off-by: Jian Qiu <jqiu@redhat.com >
* Add integration test
Signed-off-by: Jian Qiu <jqiu@redhat.com >
* Resolve comments
Signed-off-by: Jian Qiu <jqiu@redhat.com >
* Update go to 1.17
Signed-off-by: Jian Qiu <jqiu@redhat.com >
2022-01-17 10:11:19 +01:00
Jian Qiu
260cd94d85
Add interested field ( #107 )
...
* Add interested field
Signed-off-by: Jian Qiu <jqiu@redhat.com >
* Add integration test
Signed-off-by: Jian Qiu <jqiu@redhat.com >
* Resolve comments
Signed-off-by: Jian Qiu <jqiu@redhat.com >
2022-01-17 09:37:21 +01:00
Jian Zhu
44e5c786e4
support run work agent outside of managed cluster ( #104 )
...
* support run work agent outside of managed cluster
add a flag spoke-kubeconfig to specify the kubeconfig of the apoke/managed cluster
Signed-off-by: zhujian <jiazhu@redhat.com >
* delete field SpokeKubeconfig
Signed-off-by: zhujian <jiazhu@redhat.com >
2021-12-03 02:26:47 +01:00
Jian Qiu
0a4850b950
Set default propagation policy to background ( #101 )
...
Signed-off-by: Jian Qiu <jqiu@redhat.com >
2021-10-25 03:34:48 +00:00
Jian Qiu
72de5d1594
Fix owners merge in apply unstructured
...
Signed-off-by: Jian Qiu <jqiu@redhat.com >
2021-09-16 16:00:36 +08:00
Yang Le
9073cd283e
reduce the numbe of GET request of manifestwork
...
Signed-off-by: Yang Le <yangle@redhat.com >
2021-09-08 15:16:25 +08:00
Jian Qiu
c993830f25
Support delete option
...
Signed-off-by: Jian Qiu <jqiu@redhat.com >
2021-09-03 11:55:33 +08:00
Jian Qiu
fa038178d1
Update library-go and api
...
Signed-off-by: Jian Qiu <jqiu@redhat.com >
2021-09-02 10:46:04 +08:00
Jian Qiu
562516ab63
Add generation in status
...
Signed-off-by: Jian Qiu <jqiu@redhat.com >
2021-08-31 13:55:10 +08:00
Jian Qiu
0ccab23cc2
Resolve apply conflict
...
Signed-off-by: Jian Qiu <jqiu@redhat.com >
2021-07-20 14:39:30 +08:00
Jian Qiu
e56f18849f
Change deps and enable action
...
Signed-off-by: Jian Qiu <jqiu@redhat.com >
2021-06-15 15:33:20 +08:00
Yang Le
1e839f26ed
increase qps & burst
...
Signed-off-by: Yang Le <yangle@redhat.com >
2021-06-11 16:57:16 +08:00
Zhiwei Yin
30b03bec32
vaidate manifests size
...
Signed-off-by: Zhiwei Yin <zyin@redhat.com >
2021-04-17 07:58:41 +08:00
Zhiwei Yin
ba559f456c
upgrade CRD to v1 and k8s lib to 0.21.0-rc.0
...
Signed-off-by: Zhiwei Yin <zyin@redhat.com >
2021-04-08 13:20:52 +08:00
Jian Qiu
c360449bca
Ignore version when finding untracked resource
...
Signed-off-by: Jian Qiu <jqiu@redhat.com >
2021-03-24 18:42:59 +08:00
Zhiwei Yin
442fc666f2
fix typo
...
Signed-off-by: Zhiwei Yin <zyin@redhat.com >
2021-02-20 10:11:35 +08:00
Yang Le
795575932f
Update code comments
...
Signed-off-by: Yang Le <yangle@redhat.com >
2021-02-18 14:27:06 +08:00