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
{{ message }}
Repository navigation
Commit b3ec0ca
Browse filesBrowse the repository at this point in the historyBrowse files
Per G. da Silva
committed
📖 Apply the proposed GA API shape
ClusterExtension: optional namespace with managed-namespace mode,
serviceAccount historic role and fail-open documentation, Ready
condition mirroring the managing ClusterObjectDeployment, and
experimental retention of spec.progressDeadlineMinutes and
status.install.bundle.release.
ClusterObjectDeployment (new): condition constants and the Ready
condition defined around the active revision's own readiness.
ClusterObjectSet (new): grouped objectCounts without health counts,
status.phases with pinned contentDigest and sparse per-object
diagnostics identified by target identity, objectSliceRef object
sources, per-object progressionProbes with ConditionEqual and CEL
rules, and experimental phase status fields.
ClusterObjectSlice (new): discriminated-union spec with the
InlineManifests content type storing embedded manifests inline.
Signed-off-by: Per G. da Silva <pegoncal@redhat.com>
// It designates the default namespace where namespace-scoped resources for the extension
65
-
// are applied to.
54
+
// are applied.
66
55
//
67
-
// namespace is optional. When set, it must reference an existing namespace on the cluster.
56
+
// namespace is optional. When set, it must reference an existing namespace on the cluster. This namespace is unmanaged and will not be affected by deleting the ClusterExtension.
68
57
// When omitted, operator-controller resolves and creates a managed namespace from the
69
-
// bundle's metadata. Whether namespace is set or omitted is fixed at creation time and
58
+
// bundle's metadata. This namespace will be deleted if the ClusterExtension is deleted. Whether namespace is set or omitted is fixed at creation time and
70
59
// cannot be changed afterwards.
71
60
//
72
61
// The namespace field follows the DNS label standard as defined in [RFC 1123].
73
62
// It must contain only lowercase alphanumeric characters or hyphens (-), start and end with an alphanumeric character,
// <opcon:standard:validation:XValidation:rule="self == oldSelf",message="namespace is immutable">
80
-
// <opcon:standard:validation:XValidation:rule="self.matches("^[a-z0-9]([-a-z0-9]*[a-z0-9])?$")",message="namespace must be a valid DNS1123 label">
81
-
// <opcon:experimental:validation:XValidation:rule="self == oldSelf",message="namespace is immutable">
82
-
// <opcon:experimental:validation:XValidation:rule="self.matches("^[a-z0-9]([-a-z0-9]*[a-z0-9])?$")",message="namespace must be a valid DNS1123 label">
83
-
// <opcon:experimental:validation:Optional>
84
66
//
67
+
// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="namespace is immutable"
68
+
// +kubebuilder:validation:XValidation:rule="self.matches(\"^[a-z0-9]([-a-z0-9]*[a-z0-9])?$\")",message="namespace must be a valid DNS1123 label"
85
69
// +kubebuilder:validation:MaxLength:=63
86
-
// +required
70
+
// +optional
87
71
Namespacestring`json:"namespace,omitzero"`
88
72
89
73
// serviceAccount is a deprecated field and is completely ignored.
90
-
// OLMv1 is a single-tenant system where users with ClusterExtension write access are
91
-
// effectively delegated cluster-admin trust. The operator-controller runs with
92
-
// cluster-admin privileges and uses its own service account for all cluster interactions.
74
+
// Historically, serviceAccount specified the service account used to apply
75
+
// this extension's content, letting adopters scope installation privileges.
76
+
// It has no effect: ClusterExtension is a cluster-scoped resource where
77
+
// users with write access are effectively delegated cluster-admin trust,
78
+
// and the operator-controller runs with cluster-admin privileges and uses
79
+
// its own service account for all cluster interactions.
80
+
// Because the field is silently accepted, its presence must not be read as
81
+
// confirmation that an extension's content requires no additional
82
+
// privileges; it provides no signal either way.
93
83
//
94
84
// Deprecated: serviceAccount is no longer used and will be removed in a future release.
95
85
//
@@ -397,6 +387,8 @@ type CatalogFilter struct {
397
387
}
398
388
399
389
// ServiceAccountReference is a deprecated type and is completely ignored.
390
+
// Historically, it selected the service account used to apply a
391
+
// ClusterExtension's content.
400
392
//
401
393
// Deprecated: ServiceAccountReference is no longer used and will be removed in a future release.
@@ -553,9 +544,32 @@ type ClusterExtensionStatus struct {
553
544
// When Progressing is True and the Reason is Succeeded, the ClusterExtension is making progress towards a new state.
554
545
// When Progressing is True and the Reason is Retrying, the ClusterExtension has encountered an error that could be resolved on subsequent reconciliation attempts.
555
546
// When Progressing is False and the Reason is Blocked, the ClusterExtension has encountered an error that requires manual intervention for recovery.
556
-
// <opcon:experimental:description>
557
-
// When Progressing is True and Reason is RollingOut, the ClusterExtension has one or more ClusterObjectSets in active roll out.
558
-
// </opcon:experimental:description>
547
+
// During a rollout of the extension's content, the Progressing condition mirrors the status
548
+
// and reasons of the ClusterObjectDeployment rolling it out, except that a completed rollout
549
+
// is reported as True with reason Succeeded:
550
+
// - True with reason NewClusterObjectSetProgressing: a new version of the extension's
551
+
// content is rolling out; failed creation or adoption attempts are retried.
552
+
// - True with reason RevisionPreconditionsNotMet: the rollout is waiting on preconditions
553
+
// that are not yet met, such as RBAC or a CRD that has not yet propagated; it keeps retrying.
554
+
// - False with reason RevisionObjectCollision: one or more objects are owned by another
555
+
// controller or already exist; the collision must be resolved.
556
+
// - False with reason RevisionInvalidSpecification: the rollout content is invalid.
557
+
// - False with reason InvalidSpecification: the extension's template metadata is invalid;
558
+
// correct it to resume.
559
+
// - False with reason OwnerConflict: the extension's newest rollout is controlled by
560
+
// another controller; no new rollout starts while the conflict persists.
561
+
// - False with reason UnmanagedRevision: the extension's newest rollout is not controlled
562
+
// and cannot be proven to be its own; remove it, or restore its managed-by label, to resume.
563
+
// <opcon:experimental:description>
564
+
// - False with reason ProgressDeadlineExceeded: the rollout did not complete within its
565
+
// progress deadline.
566
+
// </opcon:experimental:description>
567
+
// The Ready condition reports whether the extension's content is rolled out and its objects are ready:
568
+
// - True with reason RevisionReady: the extension's current content is rolled out and all of its objects are ready.
569
+
// - False with reason RevisionNotReady: the extension's current content is rolled out, but one or more of its objects are not ready.
570
+
// - False with reason NoActiveRevision: the extension has no content being rolled out.
571
+
// - Unknown with reason MultipleActiveRevisions: a new version of the extension's content is rolling out; readiness is not evaluated until the rollout completes.
572
+
// - Unknown with reason Unknown: the readiness of the extension's content is not yet determined.
559
573
//
560
574
// When the ClusterExtension is sourced from a catalog, it surfaces deprecation conditions based on catalog metadata.
561
575
// These are indications from a package owner to guide users away from a particular package, channel, or bundle:
@@ -607,8 +621,7 @@ type ClusterExtension struct {
607
621
metav1.ObjectMeta`json:"metadata,omitempty"`
608
622
609
623
// spec is an optional field that defines the desired state of the ClusterExtension.
610
-
//
611
-
// <opcon:experimental:validation:XValidation:rule="has(oldSelf.namespace) == has(self.namespace)",message="namespace presence is immutable; it cannot be added or removed after creation">
624
+
// +kubebuilder:validation:XValidation:rule="has(oldSelf.namespace) == has(self.namespace)",message="namespace presence is immutable; it cannot be added or removed after creation"
0 commit comments