Commit Graph

64 Commits

Author SHA1 Message Date
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
Yang Le
4252656611 Replace resource mapper with dynamicRESTMapper
Signed-off-by: Yang Le <yangle@redhat.com>
2021-02-07 14:48:48 +08:00
Yang Le
1ae24f248f Correct typos
Signed-off-by: Yang Le <yangle@redhat.com>
2021-01-14 15:01:53 +08:00
Yang Le
4efd6bd5e5 Update comments of AppliedManifestWorkController
Signed-off-by: Yang Le <yangle@redhat.com>
2020-12-04 13:52:25 +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
017b3aa427 Update e2e test cases to work with registration-operator 2020-07-22 14:39:51 +08:00
Jian Qiu
d4bd6c718e Follow up of pr28 2020-07-20 21:13:40 +08:00
Jian Qiu
e4fa6ba7e3 Implement appliedmanifestwork 2020-07-10 18:03:22 +08:00
Yang Le
b269b91a24 Check if finalizer exists before applying manifests 2020-07-08 10:44:57 +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
e75664bd03 Add StaleManifestDeletionController to delete untracked resources 2020-06-01 15:34:41 +08:00
OpenShift Merge Robot
0b640bf510 Merge pull request #17 from elgnay/more-integration-cases
Add more integration test cases
2020-05-28 09:04:14 -04:00
David Eads
bed0d6e7ba separate manifest controllers 2020-05-21 17:44:06 -04:00
David Eads
1d0803b910 separate finalizer controller 2020-05-21 17:44:05 -04:00
David Eads
43492dd790 separate test helpers 2020-05-21 17:44:05 -04:00