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
. Run the Operator on your cluster by using the OLM integration in Operator SDK:
46
+
. Enter the following command to run the Operator on the cluster:
47
47
+
48
48
[source,terminal]
49
49
----
50
-
$ operator-sdk run bundle \
51
-
[-n <namespace>] \//<1>
52
-
<registry>/<user>/<bundle_image_name>:<tag>
50
+
$ operator-sdk run bundle \//<1>
51
+
-n <namespace> \//<2>
52
+
<registry>/<user>/<bundle_image_name>:<tag> <3>
53
53
----
54
-
<1> By default, the command installs the Operator in the currently active project in your `~/.kube/config` file. You can add the `-n` flag to set a different namespace scope for the installation.
54
+
<1> The `run bundle` command creates a valid file-based catalog and installs the Operator bundle on your cluster using OLM.
55
+
<2> Optional: By default, the command installs the Operator in the currently active project in your `~/.kube/config` file. You can add the `-n` flag to set a different namespace scope for the installation.
56
+
<3> If you do not specify an image, the command uses `quay.io/operator-framework/opm:latest` as the default index image. If you specify an image, the command uses the bundle image itself as the index image.
57
+
+
58
+
[IMPORTANT]
59
+
====
60
+
As of {product-title} 4.11, the `run bundle` command supports the file-based catalog format for Operator catalogs by default. The deprecated SQLite database format for Operator catalogs continues to be supported; however, it will be removed in a future release. It is recommended that Operator authors migrate their workflows to the file-based catalog format.
61
+
====
55
62
+
56
63
This command performs the following actions:
57
64
+
58
65
--
59
66
* Create an index image referencing your bundle image. The index image is opaque and ephemeral, but accurately reflects how a bundle would be added to a catalog in production.
60
67
* Create a catalog source that points to your new index image, which enables OperatorHub to discover your Operator.
61
-
* Deploy your Operator to your cluster by creating an `OperatorGroup`, `Subscription`, `InstallPlan`, and all other required objects, including RBAC.
68
+
* Deploy your Operator to your cluster by creating an `OperatorGroup`, `Subscription`, `InstallPlan`, and all other required resources, including RBAC.
* xref:../../operators/understanding/olm-packaging-format.adoc#olm-file-based-catalogs_olm-packaging-format[File-based catalogs] in Operator Framework packaging format
18
+
* xref:../../operators/admin/olm-managing-custom-catalogs.adoc#olm-managing-custom-catalogs-fb[File-based catalogs] in Managing custom catalogs
0 commit comments