Skip to content

Commit 22ef06f

Browse files
committed
review updates
Signed-off-by: Jordan Keister <[email protected]>
1 parent e29724d commit 22ef06f

File tree

7 files changed

+26
-27
lines changed

7 files changed

+26
-27
lines changed

api/v1alpha1/clusterextension_types.go

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ type SourceConfig struct {
9797
// catalog is used to configure how information is sourced from a catalog.
9898
// This field is required when sourceType is "Catalog", and forbidden otherwise.
9999
//
100-
// +optional.
100+
// +optional
101101
Catalog *CatalogSource `json:"catalog,omitempty"`
102102
}
103103

@@ -107,7 +107,7 @@ type SourceConfig struct {
107107
// +union
108108
type ClusterExtensionInstallConfig struct {
109109
// namespace designates the kubernetes Namespace where bundle content
110-
// for the 'packageName' package field will be applied and the necessary
110+
// for the package, referenced in the 'packageName' field, will be applied and the necessary
111111
// service account can be found.
112112
// The bundle may contain cluster-scoped resources or resources that are
113113
// applied to other Namespaces. This Namespace is expected to exist.
@@ -264,7 +264,7 @@ type CatalogSource struct {
264264
// Each channel in the list must follow the DNS subdomain standard
265265
// as defined in [RFC 1123]. It must contain only lowercase alphanumeric characters,
266266
// hyphens (-) or periods (.), start and end with an alphanumeric character,
267-
// and be no longer than 253 characters.
267+
// and be no longer than 253 characters. No more than 256 channels can be specified.
268268
//
269269
// When specified, it is used to constrain the set of installable bundles and
270270
// the automated upgrade path. This constraint is an AND operation with the
@@ -394,7 +394,6 @@ type CRDUpgradeSafetyPreflightConfig struct {
394394
// performing an upgrade operation.
395395
//
396396
// +kubebuilder:validation:Enum:="None";"Strict"
397-
// +kubebuilder:default:=Strict
398397
// +kubebuilder:validation:Required
399398
Enforcement CRDUpgradeSafetyEnforcement `json:"enforcement"`
400399
}
@@ -434,10 +433,10 @@ type BundleMetadata struct {
434433
Name string `json:"name"`
435434

436435
// version is a required field and is a reference to the version that this bundle represents
437-
// version follows the semantic versioning standard as defined in https://semver.org/, but permits a leading 'v' character.
436+
// version follows the semantic versioning standard as defined in https://semver.org/.
438437
//
439438
// +kubebuilder:validation:Required
440-
// +kubebuilder:validation:XValidation:rule="self.matches(\"^v?([0-9]+)(\\\\.[0-9]+)?(\\\\.[0-9]+)?(-([-0-9A-Za-z]+(\\\\.[-0-9A-Za-z]+)*))?(\\\\+([-0-9A-Za-z]+(-\\\\.[-0-9A-Za-z]+)*))?\")",message="version name must foo"
439+
// +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"
441440
Version string `json:"version"`
442441
}
443442

@@ -451,8 +450,8 @@ type ClusterExtensionStatus struct {
451450
//
452451
// The Progressing condition represents whether or not the ClusterExtension is advancing towards a new state.
453452
// When Progressing is True and the Reason is Succeeded, the ClusterExtension is making progress towards a new state.
453+
// When Progressing is True and the Reason is Retrying, the ClusterExtension has encountered an error that could be resolved on subsequent reconciliation attempts.
454454
// When Progressing is False and the Reason is Blocked, the ClusterExtension has encountered an error that requires manual intervention for recovery.
455-
// When Progressing is False and the Reason is Retrying, the ClusterExtension has encountered an error that could be resolved on subsequent reconciliation attempts.
456455
//
457456
// When the ClusterExtension is sourced from a catalog, if may also communicate a deprecation condition.
458457
// These are indications from a package owner to guide users away from a particular package, channel, or bundle.
@@ -517,6 +516,8 @@ type ClusterExtensionList struct {
517516
// +optional
518517
metav1.ListMeta `json:"metadata,omitempty"`
519518

519+
// items is a required list of ClusterExtension objects.
520+
//
520521
// +kubebuilder:validation:Required
521522
Items []ClusterExtension `json:"items"`
522523
}

config/base/crd/bases/olm.operatorframework.io_clusterextensions.yaml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ spec:
7171
namespace:
7272
description: |-
7373
namespace designates the kubernetes Namespace where bundle content
74-
for the 'packageName' package field will be applied and the necessary
74+
for the package, referenced in the 'packageName' field, will be applied and the necessary
7575
service account can be found.
7676
The bundle may contain cluster-scoped resources or resources that are
7777
applied to other Namespaces. This Namespace is expected to exist.
@@ -105,7 +105,6 @@ spec:
105105
consequences of upgrading a CRD, such as data loss.
106106
properties:
107107
enforcement:
108-
default: Strict
109108
description: |-
110109
enforcement is a required field, used to configure the state of the CRD Upgrade Safety pre-flight check.
111110
@@ -211,7 +210,7 @@ spec:
211210
Each channel in the list must follow the DNS subdomain standard
212211
as defined in [RFC 1123]. It must contain only lowercase alphanumeric characters,
213212
hyphens (-) or periods (.), start and end with an alphanumeric character,
214-
and be no longer than 253 characters.
213+
and be no longer than 253 characters. No more than 256 channels can be specified.
215214
216215
When specified, it is used to constrain the set of installable bundles and
217216
the automated upgrade path. This constraint is an AND operation with the
@@ -477,8 +476,8 @@ spec:
477476
478477
The Progressing condition represents whether or not the ClusterExtension is advancing towards a new state.
479478
When Progressing is True and the Reason is Succeeded, the ClusterExtension is making progress towards a new state.
479+
When Progressing is True and the Reason is Retrying, the ClusterExtension has encountered an error that could be resolved on subsequent reconciliation attempts.
480480
When Progressing is False and the Reason is Blocked, the ClusterExtension has encountered an error that requires manual intervention for recovery.
481-
When Progressing is False and the Reason is Retrying, the ClusterExtension has encountered an error that could be resolved on subsequent reconciliation attempts.
482481
483482
When the ClusterExtension is sourced from a catalog, if may also communicate a deprecation condition.
484483
These are indications from a package owner to guide users away from a particular package, channel, or bundle.
@@ -568,11 +567,11 @@ spec:
568567
version:
569568
description: |-
570569
version is a required field and is a reference to the version that this bundle represents
571-
version follows the semantic versioning standard as defined in https://semver.org/, but permits a leading 'v' character.
570+
version follows the semantic versioning standard as defined in https://semver.org/.
572571
type: string
573572
x-kubernetes-validations:
574-
- message: version name must foo
575-
rule: self.matches("^v?([0-9]+)(\\.[0-9]+)?(\\.[0-9]+)?(-([-0-9A-Za-z]+(\\.[-0-9A-Za-z]+)*))?(\\+([-0-9A-Za-z]+(-\\.[-0-9A-Za-z]+)*))?")
573+
- message: version must be well-formed semver
574+
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]+)*))?")
576575
required:
577576
- name
578577
- version

0 commit comments

Comments
 (0)