Commit Graph

40 Commits

Author SHA1 Message Date
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
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
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
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
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
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 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
c993830f25 Support delete option
Signed-off-by: Jian Qiu <jqiu@redhat.com>
2021-09-03 11:55:33 +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
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
Yang Le
08efde4309 Add controller to handle Available status 2020-08-05 12:08:09 +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
de41bc43e1 Handle unknown kind returned by GuessObjectGroupVersionKind() 2020-07-06 09:42:54 +08:00
Yang Le
25e2dbdab7 Address remaining comments on pr #25 2020-06-30 17:29:55 +08:00
Yang Le
e1ebbae886 Support foreground deletion 2020-06-30 03:10:11 +08:00
Yang Le
7628104ef1 Check applied resources in integration test cases 2020-06-02 13:35:45 +08:00
Yang Le
188bd6fbad Add more integration test cases 2020-05-21 16:42:11 +08:00
Yang Le
0f4a815fdd Enable status condition checking 2020-05-21 11:43:45 +08:00
Yang Le
90cf73cd3f Add basic integration test cases 2020-05-15 09:35:04 +08:00