You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make FBC onboarding fully automated by the Makefile
The current FBC onboarding process fully depends and is automated by the
Makefile. The Makefile downloads all dependencies, prepares the
environment and converts existing operator to FBC.
The documentation is updated to reflect the change in the FBC onboarding
process.
JIRA: ISV-4948
Signed-off-by: Ales Raszka <[email protected]>
Now we can convert existing operator into FBC. The initial run takes a while because
36
31
a local cache is generated during a run.
37
32
38
-
The script will execute the following steps:
39
-
- Fetch a list of currently supported OCP catalogs
40
-
- Transform existing catalogs into a basic template
41
-
- Generate a composite template for an operator
42
-
- Generate an FBC catalog for a given operator
43
-
- Update operator ci.yaml config
33
+
To convert existing operator to `FBC` format you need to execute following command:
44
34
45
-
The following examples will be using `aqua` operator as an example. Change an operator name that matches the operator you want to convert.
46
35
```bash
47
-
$ fbc-onboarding --operator-name aqua \
48
-
--repo-root . \
49
-
--verbose
36
+
$ make fbc-onboarding
50
37
51
38
2024-04-24 15:53:05,537 [operator-cert] INFO Generating FBC templates for the following versions: ['4.12', '4.13', '4.14', '4.15', '4.16']
52
39
2024-04-24 15:53:07,632 [operator-cert] INFO Processing catalog: v4.12
53
40
2024-04-24 15:53:07,633 [operator-cert] DEBUG Building cache for registry.stage.redhat.io/redhat/community-operator-index:v4.12
54
41
...
55
42
```
56
43
44
+
The Makefile will execute the following steps:
45
+
- Download dependencies needed for the migration (opm, fbc-onboarding CLI)
46
+
- Fetch a list of currently supported OCP catalogs
47
+
- Transform existing catalogs into a basic template
48
+
- Generate a composite template for an operator
49
+
- Generate an FBC catalog for a given operator
50
+
- Update operator ci.yaml config
51
+
57
52
After a script is finished you should see a template and generated fbc in the repository.
58
53
```bash
59
-
$ tree operatos/aqua
54
+
$ tree operators/aqua
60
55
61
56
operators/aqua
62
57
├── 0.0.1
@@ -109,7 +104,8 @@ $ git commit --signoff -m "Add FBC resources for aqua operator"
109
104
Catalog templates are used to simplify a view of a catalog and allow easier manipulation of catalogs. The automated conversion pre-generates a basic + composite template that can be turned into full FBC using the following command:
Of course, you can choose any type of template that you prefer. More information about catalog templates can be found [here](https://olm.operatorframework.io/docs/reference/catalog-templates/)
110
+
Of course, you can choose any type of template that you prefer by modifying the Makefile target.
111
+
More information about catalog templates can be found [here](https://olm.operatorframework.io/docs/reference/catalog-templates/)
0 commit comments