Skip to content

Commit 214bf08

Browse files
Ish Shaheverettravenmichaelryanpeter
authored
Add deprecation information to docs (#323)
Signed-off-by: Ish Shah <[email protected]> Co-authored-by: Bryce Palmer <[email protected]> Co-authored-by: Michael Peter <[email protected]>
1 parent d91e0b1 commit 214bf08

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

content/en/docs/Reference/file-based-catalogs.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,45 @@ properties:
304304
kind: Bar
305305
```
306306

307+
#### `olm.deprecations`
308+
309+
Operator authors can provide information for support and upgrades by using the optional `olm.deprecations` schema.
310+
311+
The file-based catalog (FBC) deprecation schema consists of references to packages, bundles, and channels with a custom deprecation message.
312+
313+
A valid deprecation schema meets the following criteria:
314+
- There must be only one schema per package
315+
- The message must be a non-zero length
316+
- The package must exist in the catalog
317+
318+
The deprecation feature does not consider overlapping deprecation (package vs channel vs bundle).
319+
320+
| | `olm.package` | `olm.channel` | `olm.bundle` |
321+
|--------------|---------------------------------|----------------------|-----------------------|
322+
| Scope | Entire Package | Single Channel | Single Bundle Version |
323+
| Requirements | `name` must be empty since it is inferred from the parent `package` field | `name` is mandatory | `name` is mandatory |
324+
325+
The following example demonstrates each of the deprecation entry types:
326+
```yaml
327+
schema: olm.deprecations
328+
package: deprecation-example
329+
entries:
330+
- reference:
331+
schema: olm.bundle
332+
name: deprecation-example-operator.v1.68.0
333+
message: |
334+
deprecation-example-operator.v1.68.0 is deprecated. Uninstall and install deprecation-example-operator.v1.72.0 for support.
335+
- reference:
336+
schema: olm.package
337+
message: |
338+
package deprecation-example is end of life. Please use 'non-deprecated-example' package for support.
339+
- reference:
340+
schema: olm.channel
341+
name: alpha
342+
message: |
343+
channel alpha is no longer supported. Please switch to channel 'stable'.
344+
```
345+
307346
### Properties
308347

309348
Properties are arbitrary pieces of metadata that can be attached to file-based catalog schemas. The type field is a

0 commit comments

Comments
 (0)