Skip to content

Commit f9f14af

Browse files
Add doc on validation of custom categories
1 parent 273f4a8 commit f9f14af

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
@@ -143,6 +143,9 @@ bundle: ...
143143
...
144144
operator-sdk bundle validate ./bundle --select-optional name=operatorhub
145145
```
146+
The `operatorhub` validator also allows validation of custom `categories` in CSV [annotations][csv_annotation]. This can be done by
147+
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
148+
details refer to [validation of operator bundles][olm_validation].
146149

147150
### Package manifests format
148151

@@ -310,3 +313,5 @@ being managed, each with a `name` and `url`.
310313
[olm-capabilities]:/docs/advanced-topics/operator-capabilities/operator-capabilities
311314
[csv-markers]:/docs/building-operators/golang/references/markers
312315
[operatorhub]:https://operatorhub.io/
316+
[olm_validation]: https://olm.operatorframework.io/docs/tasks/validate-package/#validation
317+
[csv_annotation]: https://github.com/kubernetes/apimachinery/blob/v0.19.3/pkg/apis/meta/v1/types.go#L238

0 commit comments

Comments
 (0)