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
Copy file name to clipboardExpand all lines: content/en/docs/Reference/catalog-templates.md
+54-99Lines changed: 54 additions & 99 deletions
Original file line number
Diff line number
Diff line change
@@ -22,8 +22,8 @@ The templates supported by [`opm`](https://github.com/operator-framework/operato
22
22
23
23
## Basic Template
24
24
The `basic template` is an input schema which eliminates FBC information that can be retrieved from existing registries when we process it.
25
-
Users provide all components of an [FBC schema](https://olm.operatorframework.io/docs/reference/file-based-catalogs/#olm-defined-schemas), but supply only the bundle image reference for any `olm.bundle` objects. This results in a greatly simplified, smaller document.
26
-
This approach may be attractive to operator authors who maintain existing catalogs and just want to make the job easier, or for operator authors who need to retain a channel graph which is not based on `semver`.
25
+
Within the schema, users can add entries composed of any valid [FBC schema](https://olm.operatorframework.io/docs/reference/file-based-catalogs/#olm-defined-schemas) components, but supply only the bundle image reference for any `olm.bundle` objects. This results in a greatly simplified, smaller document.
26
+
This approach may be attractive to operator authors who maintain existing catalogs and just want to simplify the format, or for operator authors who need to retain an update graph which cannot be based on `semver`.
In a very simple example, we define an `olm.package` and an `olm.channel` composed of two `olm.bundle` objects that have an image name attribute but no other attributes/properties.
Using the `opm alpha render-template basic` command on this input generates the full FBC:<details><summary> (click here to display full output)</summary>
70
-
71
-
(data blobs truncated with '... [snip] ...' for brevity)
67
+
Using the `opm alpha render-template basic` command on this input generates the full FBC (skipping large bundle metadata objects):
Operator authors can convert a File-Based Catalog (FBC) to a basic template by processing the output of the `opm render` command through either `jq` or `yq`.
128
+
## Converting from FBC to Basic Template
129
+
Opm provides the capability to render existing File-Based Catalogs to basic catalog templates in JSON or YAML formats.
166
130
167
-
To convert a File-Based Catalog to a Basic Template using `jq`, run the following command:
0 commit comments