Skip to content

Commit 0864a05

Browse files
author
Per Goncalves da Silva
committed
Update generated code
Signed-off-by: Per Goncalves da Silva <[email protected]>
1 parent bf564c3 commit 0864a05

File tree

2 files changed

+35
-1
lines changed

2 files changed

+35
-1
lines changed

deploy/chart/crds/0000_50_olm_00-clusterserviceversions.crd.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ spec:
2727
jsonPath: .spec.version
2828
name: Version
2929
type: string
30+
- description: The release of this version of the CSV
31+
jsonPath: .spec.release
32+
name: Release
33+
type: string
3034
- description: The name of a CSV that this one replaces
3135
jsonPath: .spec.replaces
3236
name: Replaces
@@ -8988,6 +8992,30 @@ spec:
89888992
type: string
89898993
name:
89908994
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
89919019
replaces:
89929020
description: The name of a CSV this one replaces. Should match the `metadata.Name` field of the old CSV.
89939021
type: string

pkg/package-server/client/openapi/zz_generated.openapi.go

Lines changed: 7 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)