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 2b3deb4
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 +545,15 @@ type ClusterExtensionStatus struct {
553
545
// When Progressing is True and the Reason is Succeeded, the ClusterExtension is making progress towards a new state.
554
546
// When Progressing is True and the Reason is Retrying, the ClusterExtension has encountered an error that could be resolved on subsequent reconciliation attempts.
555
547
// 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>
548
+
// When Progressing is True and Reason is NewRevisionRollingOut, a new revision of the
549
+
// ClusterExtension's content has been determined, for example for an initial installation,
550
+
// upgrade, or reconfiguration, and that revision is actively rolling out.
551
+
// The Ready condition reports whether the extension's content is rolled out and its objects are ready:
552
+
// - True with reason RevisionReady: the extension's current content is rolled out and all of its objects are ready.
553
+
// - False with reason RevisionNotReady: the extension's current content is rolled out, but one or more of its objects are not ready.
554
+
// - False with reason NoActiveRevision: the extension has no content being rolled out.
555
+
// - Unknown with reason MultipleActiveRevisions: a new version of the extension's content is rolling out; readiness is not evaluated until the rollout completes.
556
+
// - Unknown with reason Unknown: the readiness of the extension's content is not yet determined.
559
557
//
560
558
// When the ClusterExtension is sourced from a catalog, it surfaces deprecation conditions based on catalog metadata.
561
559
// These are indications from a package owner to guide users away from a particular package, channel, or bundle:
@@ -607,8 +605,7 @@ type ClusterExtension struct {
607
605
metav1.ObjectMeta`json:"metadata,omitempty"`
608
606
609
607
// 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">
608
+
// +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