Jian Qiu
0d3dff3f25
Add e2e/integration test case for manifestworkreplicaset ( #191 )
...
* Add e2e/integration test case for manifestworkreplicaset
Signed-off-by: Jian Qiu <jqiu@redhat.com >
* Fix rbac in e2e test
Signed-off-by: Jian Qiu <jqiu@redhat.com >
---------
Signed-off-by: Jian Qiu <jqiu@redhat.com >
2023-03-15 09:40:47 -04:00
Wei Liu
ee923cd5f6
appliedmanifestwork eviction ( #190 )
...
Signed-off-by: Wei Liu <liuweixa@redhat.com >
2023-03-14 05:01:12 -04:00
Yang Le
e897248970
make e2e test cases ran as canary test cases ( #178 )
...
Signed-off-by: Yang Le <yangle@redhat.com >
2023-03-09 21:44:50 -05:00
Jian Qiu
21fb8d72ba
Upgrade kube lib to 1.26 and remove old webhook ( #189 )
...
Signed-off-by: Jian Qiu <jqiu@redhat.com >
2023-03-02 03:50:49 +01:00
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
Jian Qiu
1b804b8488
Add initial e2e/integration for placeManifestWork ( #180 )
...
Signed-off-by: Jian Qiu <jqiu@redhat.com >
2023-02-17 14:50:11 +01: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 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
Jian Zhu
90ef24d93b
Update ginkgo to v2 ( #168 )
...
Signed-off-by: zhujian <jiazhu@redhat.com >
Signed-off-by: zhujian <jiazhu@redhat.com >
2022-11-18 09:37:57 +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
Yang Le
f8d1857345
upgrade to golang1.19 ( #163 )
...
Signed-off-by: Yang Le <yangle@redhat.com >
Signed-off-by: Yang Le <yangle@redhat.com >
2022-10-28 05:01:45 -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 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
Qing Hao
718605172f
split work permissions ( #142 )
...
* split work permissions
Signed-off-by: haoqing0110 <qhao@redhat.com >
* add more comments
Signed-off-by: haoqing0110 <qhao@redhat.com >
2022-06-27 14:35:25 +00: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
Jian Qiu
2e58714199
Update golang builder in Dockerfile ( #133 )
...
Signed-off-by: Jian Qiu <jqiu@redhat.com >
2022-04-25 06:00:16 -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
7aed123b07
Add an integration test to remove a resource with orphanDelete ( #117 )
...
Signed-off-by: Jian Qiu <jqiu@redhat.com >
2022-02-23 21:41:29 -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
2f5ecc5750
fix flaky test ( #106 )
...
Signed-off-by: zhujian <jiazhu@redhat.com >
2021-12-02 13:10: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
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
e56f18849f
Change deps and enable action
...
Signed-off-by: Jian Qiu <jqiu@redhat.com >
2021-06-15 15:33:20 +08:00
Yang Le
4af2cb0ce9
update readme & makefile
...
Signed-off-by: Yang Le <yangle@redhat.com >
2021-06-15 11:07:23 +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
20b00f59af
run as non-root
...
Signed-off-by: Zhiwei Yin <zyin@redhat.com >
2021-04-16 15:11:58 +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
Yang Le
4252656611
Replace resource mapper with dynamicRESTMapper
...
Signed-off-by: Yang Le <yangle@redhat.com >
2021-02-07 14:48:48 +08:00
Jian Qiu
c6430529fb
Adopt metav1 condition
2020-09-04 15:46:50 +08:00
Jian Qiu
60a859d9f1
Resolve condition dangling
2020-08-28 12:47:07 +08:00
Yang Le
7cede9fd2f
Delete resources applied by controller only
2020-08-26 17:38:32 +08:00
OpenShift Merge Robot
ff23692076
Merge pull request #39 from elgnay/available-status
...
Add controller to handle Available status
2020-08-07 00:29:42 -04:00
Yang Le
08efde4309
Add controller to handle Available status
2020-08-05 12:08:09 +08:00
Jian Qiu
440af3438a
Add manifestwork validating webhook
2020-07-30 19:31:27 +08:00
Yang Le
26e5edb773
Create appliedmanifestwork crd with agent deployer in e2e testing
2020-07-27 14:29:12 +08:00
Yang Le
017b3aa427
Update e2e test cases to work with registration-operator
2020-07-22 14:39:51 +08:00
Jian Qiu
e4fa6ba7e3
Implement appliedmanifestwork
2020-07-10 18:03:22 +08:00
Yang Le
22c633a6e3
Add e2e test cases
2020-07-09 16:33:10 +08:00
Yang Le
de41bc43e1
Handle unknown kind returned by GuessObjectGroupVersionKind()
2020-07-06 09:42:54 +08:00