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: docs/design/operator-bundle.md
+19-25
Original file line number
Diff line number
Diff line change
@@ -91,40 +91,34 @@ $ tree
91
91
92
92
## Operator Bundle Commands
93
93
94
-
Operator SDK CLI is available to generate Bundle annotations and Dockerfile based on provided operator manifests.
94
+
`opm` (Operator Package Manager) is a CLI tool to generate bundle annotations, build bundle manifests image, validate bundle manifests image and other functionalities. Please note that the `generate`, `build` and `validate` features of `opm` CLI are currently in alpha and only meant for development use.
95
95
96
-
### Operator SDK CLI
96
+
### `opm` (Operator Package Manager)
97
97
98
-
In order to use Operator SDK CLI, follow the operator-SDK installation instruction:
98
+
In order to use `opm`CLI, follow the `opm` build instruction:
99
99
100
-
1.Install the [Operator SDK CLI](https://github.com/operator-framework/operator-sdk/blob/master/doc/user/install-operator-sdk.md)
100
+
1.Clone the operator registry repository:
101
101
102
-
Now, a binary named `operator-sdk` is available in OLM's directory to use.
Operator bundle image can be built from provided operator manifests using `build` command (see *Notes* below). The overall `bundle build` command usage is:
174
168
```bash
175
169
Usage:
176
-
operator-SDK bundle build [flags]
170
+
opm alpha bundle build [flags]
177
171
178
172
Flags:
179
173
-c, --channels string The list of channels that bundle image belongs to
The `--directory` or `-d` specifies the directory where the operator manifests fora specific version are located. The `--tag` or `-t` specifies the image tag that you want the operator bundle image to have. By using `build` command, the `annotations.yaml` and `Dockerfile` are automatically generatedin the background.
200
194
201
195
The default image builder is `Docker`. However, ` Buildah` and `Podman` are also supported. An image builder can specified via `--image-builder` or `-b` optional tag in`build` command. For example:
@@ -215,7 +209,7 @@ The `--package` or `-p` is the name of package fo the operator such as `etcd` wh
215
209
Operator bundle image can validate bundle image that is publicly available in an image registry using `validate`command (see *Notes* below). The overall `bundle validate`command usage is:
216
210
```bash
217
211
Usage:
218
-
operator-SDK bundle validate [flags]
212
+
opm alpha bundle validate [flags]
219
213
220
214
Flags:
221
215
-t, --tag string The name of the bundle image will be built
The `validate`command will first extract the contents of the bundle image into a temporary directory after it pulls the image from its image registry. Then, it will validate the format of bundle image to ensure manifests and metadata are located in their appropriate directories (`/manifests/`forbundle manifests files such as CSV and `/metadata/` for metadata files such as `annotations.yaml`). Also, it will validate the informationin`annotations.yaml` to confirm that metadata is matching the provided data. For example, the provided media typein annotations.yaml just matches the actual media type is provided in the bundle image.
Copy file name to clipboardexpand all lines: pkg/lib/bundle/testdata/validate/invalid_manifests_bundle/invalid_crd/etcdoperator.v0.9.4.clusterserviceversion.yaml
Copy file name to clipboardexpand all lines: pkg/lib/bundle/testdata/validate/invalid_manifests_bundle/invalid_crd/etcdrestores.etcd.database.coreos.com.crd.yaml
Copy file name to clipboardexpand all lines: pkg/lib/bundle/testdata/validate/invalid_manifests_bundle/invalid_sa/etcdoperator.v0.9.4.clusterserviceversion.yaml
Copy file name to clipboardexpand all lines: pkg/lib/bundle/testdata/validate/invalid_manifests_bundle/invalid_type/etcdoperator.v0.9.4.clusterserviceversion.yaml
0 commit comments