Jian Qiu
ac4d42bd45
Allow return rawjson when featuregate is enabled ( #202 )
...
Signed-off-by: Jian Qiu <jqiu@redhat.com >
2023-05-23 22:41:19 -04:00
DangPeng Liu
3cc0d808b9
update min tls to 1.13 ( #201 )
...
Signed-off-by: ldpliu <daliu@redhat.com >
2023-05-04 03:27:43 -04:00
Wei Liu
10037a429d
increse controller workers for available and cleanup ( #200 )
...
Signed-off-by: Wei Liu <liuweixa@redhat.com >
2023-04-25 07:07:10 +00:00
xuezhaojun
656a7e9866
Add gosec in verify. ( #199 )
...
Signed-off-by: xuezhaojun <zxue@redhat.com >
2023-04-18 21:09:19 -04:00
Jian Qiu
8f1364416b
Fix available controller to reduce conflict ( #198 )
...
1. requeue all works when resynce instead of handle them together in sync
2. start update condition only when finalizer and applied condition is set
Signed-off-by: Jian Qiu <jqiu@redhat.com >
2023-04-13 20:34:40 -04:00
Yang Le
1e4671dcc5
make the eventually timeout of e2e test configurable ( #197 )
...
Signed-off-by: Yang Le <yangle@redhat.com >
2023-04-10 10:15:16 -04:00
Craig Brookes
a9d4e1f020
fix spelling in err message ( #195 )
...
Signed-off-by: craig <cbrookes@redhat.com >
2023-03-28 06:43:26 -04:00
xuezhaojun
c43ffbe61e
Upgrade deps. ( #194 )
...
Signed-off-by: xuezhaojun <zxue@redhat.com >
2023-03-21 06:58:34 -04:00
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
aca3b66371
Add manifestWorkReplicaSet feature check ( #192 )
...
Signed-off-by: melserngawy <melserng@redhat.com >
2023-03-12 23:53:50 -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
dependabot[bot]
5442e8cb68
Bump golang.org/x/crypto from 0.0.0-20220214200702-86341886e292 to 0.1.0 ( #188 )
...
Bumps [golang.org/x/crypto](https://github.com/golang/crypto ) from 0.0.0-20220214200702-86341886e292 to 0.1.0.
- [Release notes](https://github.com/golang/crypto/releases )
- [Commits](https://github.com/golang/crypto/commits/v0.1.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/crypto
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-01 03:17:24 +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
dependabot[bot]
ed501f7f97
Bump golang.org/x/net from 0.1.0 to 0.7.0 ( #184 )
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.1.0 to 0.7.0.
- [Release notes](https://github.com/golang/net/releases )
- [Commits](https://github.com/golang/net/compare/v0.1.0...v0.7.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-20 02:35:16 +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
Mohamed ElSerngawy
4c46957b53
Add validate webhook ( #182 )
...
Signed-off-by: melserngawy <melserng@redhat.com >
2023-02-15 01:34:25 -05:00
dependabot[bot]
641fe5c856
Bump github.com/emicklei/go-restful ( #183 )
...
Bumps [github.com/emicklei/go-restful](https://github.com/emicklei/go-restful ) from 2.9.5+incompatible to 2.16.0+incompatible.
- [Release notes](https://github.com/emicklei/go-restful/releases )
- [Changelog](https://github.com/emicklei/go-restful/blob/v3/CHANGES.md )
- [Commits](https://github.com/emicklei/go-restful/compare/v2.9.5...v2.16.0 )
---
updated-dependencies:
- dependency-name: github.com/emicklei/go-restful
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-09 22:05:46 -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
Yang Le
d8f960f9e3
upgrade imagebuilder ( #181 )
...
Signed-off-by: Yang Le <yangle@redhat.com >
2023-02-06 08:43:07 +01:00
Yang Le
1e14476a8c
add changelog for v0.10.0 ( #179 )
...
Signed-off-by: Yang Le <yangle@redhat.com >
2023-02-03 02:23:56 +01: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
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
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
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
Yang Le
d20928e2bf
add changelog for v0.9.0 ( #162 )
...
Signed-off-by: Yang Le <yangle@redhat.com >
Signed-off-by: Yang Le <yangle@redhat.com >
2022-10-20 02:51:48 -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
Yang Le
8f206974dd
upgrade go libraries ( #145 )
...
Signed-off-by: Yang Le <yangle@redhat.com >
2022-07-27 10:24:53 +02:00
Jian Qiu
3d0c8cd275
Fix release yaml ( #144 )
...
Signed-off-by: Jian Qiu <jqiu@redhat.com >
2022-07-12 06:14:52 +00:00
Yang Le
0a87b7c674
add changelog for v0.8.0 ( #143 )
...
Signed-off-by: Yang Le <yangle@redhat.com >
2022-07-11 07:51:35 +00: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
DangPeng Liu
6f534125a7
update default qps for webhook ( #141 )
...
Signed-off-by: ldpliu <daliu@redhat.com >
2022-06-20 08:22:24 +00:00