Commit Graph

21 Commits

Author SHA1 Message Date
Jian Zhu
9450d14759 🌱 add e2e tests for addon manager (#199)
* add e2e tests for addon manager

Signed-off-by: zhujian <jiazhu@redhat.com>

* test image override and node placement for addon manager

Signed-off-by: zhujian <jiazhu@redhat.com>

---------

Signed-off-by: zhujian <jiazhu@redhat.com>
2023-06-28 15:45:43 +02:00
Jian Zhu
a78d9f457d 🌱 Move addon manager from addon-framework to ocm repo (#196)
* update vendor to add addon-framework

Signed-off-by: zhujian <jiazhu@redhat.com>

* Move addon manager from addon-framework to ocm repo

Signed-off-by: zhujian <jiazhu@redhat.com>

* add integration tests for addon manager

Signed-off-by: zhujian <jiazhu@redhat.com>

* push addon manager image post commit

Signed-off-by: zhujian <jiazhu@redhat.com>

* use library-go to refactor addon controllers

Signed-off-by: zhujian <jiazhu@redhat.com>

---------

Signed-off-by: zhujian <jiazhu@redhat.com>
2023-06-27 03:59:54 +02:00
Jian Qiu
53890594c3 🌱 Use patcher in operator to replace previous update (#181)
* Use patcher in operator to replace previous update

Signed-off-by: Jian Qiu <jqiu@redhat.com>

* Fix test error

Signed-off-by: Jian Qiu <jqiu@redhat.com>

* Fix permission in csv

Signed-off-by: Jian Qiu <jqiu@redhat.com>

---------

Signed-off-by: Jian Qiu <jqiu@redhat.com>
2023-06-18 20:43:36 -04:00
Wei Liu
946e22eaa9 waiting the approved csr if it is not found in integration test (#188)
Signed-off-by: Wei Liu <liuweixa@redhat.com>
2023-06-16 02:29:42 -04:00
Jian Zhu
023cdfd0c3 🌱 Update api to install addon template CRD (#170)
Signed-off-by: zhujian <jiazhu@redhat.com>
2023-06-14 02:26:35 -04:00
xuezhaojun
c364d34e47 Fix: hard-coded image names in e2e-test. (#183)
Signed-off-by: xuezhaojun <zxue@redhat.com>
2023-06-13 20:15:40 -04:00
Jian Qiu
db3b6fdb20 Add owner file for sub project (#182)
Signed-off-by: Jian Qiu <jqiu@redhat.com>
2023-06-13 05:21:07 -04:00
Jian Zhu
d3d648283e 🌱 Configure the golangci lint (#180)
* 🌱 Configure the golangci lint

Signed-off-by: zhujian <jiazhu@redhat.com>

* 🌱 Fix lint issues

Signed-off-by: zhujian <jiazhu@redhat.com>

---------

Signed-off-by: zhujian <jiazhu@redhat.com>
2023-06-13 03:51:48 -04:00
Jian Zhu
7332a585c0 🌱 add a verify rule for golang files import order (#177)
* 🌱 add a verify rule for golang files import order

This PR uses the [gci tool](https://github.com/daixiang0/gci) to make all go files' import section with a specific order, it will organize import with group with order:
1. standard library modules
2. 3rd party modules
3. modules in OCM org, like the `open-cluster-management.io/api`
4. current project `open-cluster-management.io/ocm` modules

developers can use the `make fmt-imports` to format the import automatically and the `make verify-fmt-imports` to check for any violation.

Signed-off-by: zhujian <jiazhu@redhat.com>

* 🌱 format the go files import

Signed-off-by: zhujian <jiazhu@redhat.com>

---------

Signed-off-by: zhujian <jiazhu@redhat.com>
2023-06-12 10:23:04 -04:00
Jian Qiu
3c9bfea949 🌱 Add a common patcher and adopt it in registration (#178)
* Add a common patcher and adopt it in registration

Signed-off-by: Jian Qiu <jqiu@redhat.com>

* Add patcher test

Signed-off-by: Jian Qiu <jqiu@redhat.com>

---------

Signed-off-by: Jian Qiu <jqiu@redhat.com>
2023-06-12 02:40:09 -04:00
Wei Liu
87d152e115 add more debug info for autoapprove test (#172)
Signed-off-by: Wei Liu <liuweixa@redhat.com>
2023-06-08 04:05:28 -04:00
Jian Qiu
62efbf935b Build common options for agent (#163)
Signed-off-by: Jian Qiu <jqiu@redhat.com>
2023-06-08 02:55:43 -04:00
Qing Hao
fed5020c12 stabilize placement integration test (#165)
Signed-off-by: haoqing0110 <qhao@redhat.com>
2023-06-06 01:25:27 -04:00
Jian Qiu
d21057c831 Fix: webhook e2e left some unhandled clusters (#164)
Signed-off-by: Jian Qiu <jqiu@redhat.com>
2023-06-05 10:56:43 -04:00
Jian Qiu
2b4eee3f98 Move registration e2e and remove staging (#159)
Signed-off-by: Jian Qiu <jqiu@redhat.com>
2023-06-02 01:15:32 -04:00
Jian Qiu
384a3f4205 move placement e2e out of staging (#158)
Signed-off-by: Jian Qiu <jqiu@redhat.com>
2023-06-01 07:46:43 -04:00
Jian Qiu
3db47b7997 Move work e2e out of staging (#157)
* Move work e2e out of staging

Signed-off-by: Jian Qiu <jqiu@redhat.com>

* some refactor on tester

remove unnecessary field and build a enable feature func

Signed-off-by: Jian Qiu <jqiu@redhat.com>

---------

Signed-off-by: Jian Qiu <jqiu@redhat.com>
2023-06-01 06:18:21 -04:00
Jian Qiu
95aa3b1a06 Move operator e2e (#156)
Signed-off-by: Jian Qiu <jqiu@redhat.com>
2023-05-31 07:09:42 -04:00
Jian Qiu
8a05d4b030 Refactore integration test (#150)
Signed-off-by: Jian Qiu <jqiu@redhat.com>
2023-05-31 02:34:06 -04:00
Jian Qiu
116ae8cc28 Refactor version/feature/cmd packages (#148)
Signed-off-by: Jian Qiu <jqiu@redhat.com>
2023-05-30 02:07:32 -04:00
xuezhaojun
ad38b9465f Relocate pkgs. (#146)
Signed-off-by: xuezhaojun <zxue@redhat.com>
2023-05-29 07:20:55 -04:00