|
27 | 27 | jsonPath: .spec.version |
28 | 28 | name: Version |
29 | 29 | type: string |
| 30 | + - description: The release of this version of the CSV |
| 31 | + jsonPath: .spec.release |
| 32 | + name: Release |
| 33 | + type: string |
30 | 34 | - description: The name of a CSV that this one replaces |
31 | 35 | jsonPath: .spec.replaces |
32 | 36 | name: Replaces |
@@ -8988,6 +8992,30 @@ spec: |
8988 | 8992 | type: string |
8989 | 8993 | name: |
8990 | 8994 | type: string |
| 8995 | + release: |
| 8996 | + description: |- |
| 8997 | + release specifies the packaging version of the operator, defaulting to empty |
| 8998 | + release is optional |
| 8999 | + |
| 9000 | + A ClusterServiceVersion's release field is used to distinguish between different builds of the same operator version |
| 9001 | + This is useful for operators that need to make changes to the CSV which don't affect their functionality, |
| 9002 | + for example: |
| 9003 | + - to fix a typo in their description |
| 9004 | + - to add/amend annotations or labels |
| 9005 | + - to amend examples or documentation |
| 9006 | + - to produce different builds for different environments |
| 9007 | + |
| 9008 | + It is up to operator authors to determine the semantics of release versions they use |
| 9009 | + for their operator. All release versions must conform to the semver prerelease format |
| 9010 | + (dot-separated identifiers containing only alphanumerics and hyphens) and are limited |
| 9011 | + to a maximum length of 20 characters. |
| 9012 | + type: string |
| 9013 | + maxLength: 20 |
| 9014 | + x-kubernetes-validations: |
| 9015 | + - rule: self.matches('^[0-9A-Za-z-]+(\\.[0-9A-Za-z-]+)*$') |
| 9016 | + message: release version must be composed of dot-separated identifiers containing only alphanumerics and hyphens |
| 9017 | + - rule: '!self.split(''.'').exists(x, x.matches(''^0[0-9]+$''))' |
| 9018 | + message: numeric identifiers in release version must not have leading zeros |
8991 | 9019 | replaces: |
8992 | 9020 | description: The name of a CSV this one replaces. Should match the `metadata.Name` field of the old CSV. |
8993 | 9021 | type: string |
|
0 commit comments