Skip to content

Commit 9329064

Browse files
Add doc on validation of custom categories
1 parent 160151b commit 9329064

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

website/content/en/docs/olm-integration/generation.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,15 +143,17 @@ operatorhub name=operatorhub OperatorHub.io metadata validation
143143
...
144144
```
145145

146-
For example, you want to turn on the `operatorhub` validator shown above so you can publish the `0.0.1` operator
147-
you recently created on [OperatorHub.io][operatorhub]. To do so, you can modify your Makefile's `bundle` recipe
148-
to validate any further changes you make to bundle UI metadata related to OperatorHub requirements:
146+
Documentation on optional validators:
147+
- [`operatorhub`][operatorhub_validator]
149148

150149
```make
151150
bundle: ...
152151
...
153152
operator-sdk bundle validate ./bundle --select-optional name=operatorhub
154153
```
154+
The `operatorhub` validator also allows validation of custom `categories` in CSV [annotations][csv_annotation]. This can be done by
155+
defining a list of custom categories in a json-encoded file and setting its path as an environment variable named `OPERATOR_BUNDLE_CATEGORIES`. For more
156+
details refer to [validation of operator bundles][olm_validation].
155157

156158
### Package manifests format
157159

@@ -320,3 +322,4 @@ being managed, each with a `name` and `url`.
320322
[csv-markers]:/docs/building-operators/golang/references/markers
321323
[operatorhub]:https://operatorhub.io/
322324
[scorecard]:/docs/advanced-topics/scorecard
325+
[operatorhub_validator]: https://olm.operatorframework.io/docs/tasks/validate-package/#validation

0 commit comments

Comments
 (0)