Skip to content

Commit 8c5a40a

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

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,9 @@ bundle: ...
152152
...
153153
operator-sdk bundle validate ./bundle --select-optional name=operatorhub
154154
```
155+
The `operatorhub` validator also allows validation of custom `categories` in CSV [annotations][csv_annotation]. This can be done by
156+
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
157+
details refer to [validation of operator bundles][olm_validation].
155158

156159
### Package manifests format
157160

@@ -320,3 +323,5 @@ being managed, each with a `name` and `url`.
320323
[csv-markers]:/docs/building-operators/golang/references/markers
321324
[operatorhub]:https://operatorhub.io/
322325
[scorecard]:/docs/advanced-topics/scorecard
326+
[olm_validation]: https://olm.operatorframework.io/docs/tasks/validate-package/#validation
327+
[csv_annotation]: https://github.com/kubernetes/apimachinery/blob/v0.19.3/pkg/apis/meta/v1/types.go#L238

0 commit comments

Comments
 (0)