You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: api/v1/clusterextension_types.go
+23Lines changed: 23 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -466,6 +466,29 @@ type BundleMetadata struct {
466
466
// +required
467
467
// +kubebuilder:validation:XValidation:rule="self.matches(\"^([0-9]+)(\\\\.[0-9]+)?(\\\\.[0-9]+)?(-([-0-9A-Za-z]+(\\\\.[-0-9A-Za-z]+)*))?(\\\\+([-0-9A-Za-z]+(-\\\\.[-0-9A-Za-z]+)*))?\")",message="version must be well-formed semver"
468
468
Versionstring`json:"version"`
469
+
470
+
// release is an optional field that identifies a specific release of this bundle's version.
471
+
// A release represents a re-publication of the same version, typically used to deliver
472
+
// packaging or metadata changes without changing the version number. When multiple
473
+
// releases exist for the same version, higher releases are preferred. An unset release
474
+
// is less preferred than all other release values.
475
+
//
476
+
// The value consists of dot-separated identifiers, where each identifier is either a
477
+
// numeric value (without leading zeros) or an alphanumeric string (e.g., "2", "1.el9",
478
+
// "3.alpha.1"). Releases are compared identifier by identifier: numeric identifiers are
479
+
// compared as integers, alphanumeric identifiers are compared lexically, and numeric
480
+
// identifiers always sort before alphanumeric identifiers.
481
+
//
482
+
// For bundles with explicit pkg.Release metadata, this field contains that release value.
483
+
// For registry+v1 bundles lacking an explicit release value, this field contains the release
484
+
// extracted from version's build metadata (e.g., '2' from '1.0.0+2').
485
+
// This field is omitted when the bundle's release value is unset.
486
+
//
487
+
// +optional
488
+
// <opcon:experimental>
489
+
// +kubebuilder:validation:MaxLength=20
490
+
// +kubebuilder:validation:XValidation:rule="self.matches(\"^$|^(0|[1-9][0-9]*|[0-9]*[A-Za-z-][0-9A-Za-z-]*)(\\\\.(0|[1-9][0-9]*|[0-9]*[A-Za-z-][0-9A-Za-z-]*))*$\")",message="release must be empty or consist of dot-separated identifiers (numeric without leading zeros, or alphanumeric)"
491
+
Release*string`json:"release,omitempty"`
469
492
}
470
493
471
494
// RevisionStatus defines the observed state of a ClusterObjectSet.
Copy file name to clipboardExpand all lines: docs/api-reference/olmv1-api-reference.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -67,6 +67,7 @@ _Appears in:_
67
67
| --- | --- | --- | --- |
68
68
|`name`_string_| name is required and follows the DNS subdomain standard as defined in [RFC 1123].<br />It must contain only lowercase alphanumeric characters, hyphens (-) or periods (.),<br />start and end with an alphanumeric character, and be no longer than 253 characters. || Required: \{\} <br /> |
69
69
|`version`_string_| version is required and references the version that this bundle represents.<br />It follows the semantic versioning standard as defined in https://semver.org/.|| Required: \{\} <br /> |
70
+
| `release` _string_ | release is an optional field that identifies a specific release of this bundle's version.<br />A release represents a re-publication of the same version, typically used to deliver<br />packaging or metadata changes without changing the version number. When multiple<br />releases exist for the same version, higher releases are preferred. An unset release<br />is less preferred than all other release values.<br />The value consists of dot-separated identifiers, where each identifier is either a<br />numeric value (without leading zeros) or an alphanumeric string (e.g., "2", "1.el9",<br />"3.alpha.1"). Releases are compared identifier by identifier: numeric identifiers are<br />compared as integers, alphanumeric identifiers are compared lexically, and numeric<br />identifiers always sort before alphanumeric identifiers.<br />For bundles with explicit pkg.Release metadata, this field contains that release value.<br />For registry+v1 bundles lacking an explicit release value, this field contains the release<br />extracted from version's build metadata (e.g., '2' from '1.0.0+2').<br />This field is omitted when the bundle's release value is unset.<br /><opcon:experimental> | | MaxLength: 20 <br />Optional: \{\} <br /> |
0 commit comments