Skip to content

Commit 2954109

Browse files
(fix) Api documentation
1 parent 578dc33 commit 2954109

File tree

9 files changed

+25
-3
lines changed

9 files changed

+25
-3
lines changed

api/v1/clusterextension_types.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,8 @@ type RevisionStatus struct {
474474

475475
// ClusterExtensionStatus defines the observed state of a ClusterExtension.
476476
type ClusterExtensionStatus struct {
477+
// conditions represents the current state of the ClusterExtension.
478+
//
477479
// The set of condition types which apply to all spec.source variations are Installed and Progressing.
478480
//
479481
// The Installed condition represents whether the bundle has been installed for this ClusterExtension:
@@ -536,7 +538,11 @@ type ClusterExtensionInstallStatus struct {
536538

537539
// ClusterExtension is the Schema for the clusterextensions API
538540
type ClusterExtension struct {
539-
metav1.TypeMeta `json:",inline"`
541+
metav1.TypeMeta `json:",inline"`
542+
543+
// metadata is the standard object's metadata.
544+
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
545+
// +optional
540546
metav1.ObjectMeta `json:"metadata,omitempty"`
541547

542548
// spec is an optional field that defines the desired state of the ClusterExtension.

api/v1/clusterextensionrevision_types.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,11 @@ type ClusterExtensionRevisionStatus struct {
215215
// or reconfigured. Once the latest revision has rolled out successfully, previous active revisions are archived for
216216
// posterity.
217217
type ClusterExtensionRevision struct {
218-
metav1.TypeMeta `json:",inline"`
218+
metav1.TypeMeta `json:",inline"`
219+
220+
// metadata is the standard object's metadata.
221+
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
222+
// +optional
219223
metav1.ObjectMeta `json:"metadata,omitempty"`
220224

221225
// spec defines the desired state of the ClusterExtensionRevision.

docs/api-reference/olmv1-api-reference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ _Appears in:_
359359

360360
| Field | Description | Default | Validation |
361361
| --- | --- | --- | --- |
362-
| `conditions` _[Condition](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.31/#condition-v1-meta) array_ | The set of condition types which apply to all spec.source variations are Installed and Progressing.<br />The Installed condition represents whether the bundle has been installed for this ClusterExtension:<br /> - When Installed is True and the Reason is Succeeded, the bundle has been successfully installed.<br /> - When Installed is False and the Reason is Failed, the bundle has failed to install.<br />The Progressing condition represents whether or not the ClusterExtension is advancing towards a new state.<br />When Progressing is True and the Reason is Succeeded, the ClusterExtension is making progress towards a new state.<br />When Progressing is True and the Reason is Retrying, the ClusterExtension has encountered an error that could be resolved on subsequent reconciliation attempts.<br />When Progressing is False and the Reason is Blocked, the ClusterExtension has encountered an error that requires manual intervention for recovery.<br /><opcon:experimental:description><br />When Progressing is True and Reason is RollingOut, the ClusterExtension has one or more ClusterExtensionRevisions in active roll out.<br /></opcon:experimental:description><br />When the ClusterExtension is sourced from a catalog, it may also communicate a deprecation condition.<br />These are indications from a package owner to guide users away from a particular package, channel, or bundle:<br /> - BundleDeprecated is set if the requested bundle version is marked deprecated in the catalog.<br /> - ChannelDeprecated is set if the requested channel is marked deprecated in the catalog.<br /> - PackageDeprecated is set if the requested package is marked deprecated in the catalog.<br /> - Deprecated is a rollup condition that is present when any of the deprecated conditions are present. | | |
362+
| `conditions` _[Condition](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.31/#condition-v1-meta) array_ | conditions represents the current state of the ClusterExtension.<br />The set of condition types which apply to all spec.source variations are Installed and Progressing.<br />The Installed condition represents whether the bundle has been installed for this ClusterExtension:<br /> - When Installed is True and the Reason is Succeeded, the bundle has been successfully installed.<br /> - When Installed is False and the Reason is Failed, the bundle has failed to install.<br />The Progressing condition represents whether or not the ClusterExtension is advancing towards a new state.<br />When Progressing is True and the Reason is Succeeded, the ClusterExtension is making progress towards a new state.<br />When Progressing is True and the Reason is Retrying, the ClusterExtension has encountered an error that could be resolved on subsequent reconciliation attempts.<br />When Progressing is False and the Reason is Blocked, the ClusterExtension has encountered an error that requires manual intervention for recovery.<br /><opcon:experimental:description><br />When Progressing is True and Reason is RollingOut, the ClusterExtension has one or more ClusterExtensionRevisions in active roll out.<br /></opcon:experimental:description><br />When the ClusterExtension is sourced from a catalog, it may also communicate a deprecation condition.<br />These are indications from a package owner to guide users away from a particular package, channel, or bundle:<br /> - BundleDeprecated is set if the requested bundle version is marked deprecated in the catalog.<br /> - ChannelDeprecated is set if the requested channel is marked deprecated in the catalog.<br /> - PackageDeprecated is set if the requested package is marked deprecated in the catalog.<br /> - Deprecated is a rollup condition that is present when any of the deprecated conditions are present. | | |
363363
| `install` _[ClusterExtensionInstallStatus](#clusterextensioninstallstatus)_ | install is a representation of the current installation status for this ClusterExtension. | | |
364364
| `activeRevisions` _[RevisionStatus](#revisionstatus) array_ | activeRevisions holds a list of currently active (non-archived) ClusterExtensionRevisions,<br />including both installed and rolling out revisions.<br /><opcon:experimental> | | |
365365

helm/olmv1/base/operator-controller/crd/experimental/olm.operatorframework.io_clusterextensions.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -576,6 +576,8 @@ spec:
576576
x-kubernetes-list-type: map
577577
conditions:
578578
description: |-
579+
conditions represents the current state of the ClusterExtension.
580+
579581
The set of condition types which apply to all spec.source variations are Installed and Progressing.
580582
581583
The Installed condition represents whether the bundle has been installed for this ClusterExtension:

helm/olmv1/base/operator-controller/crd/standard/olm.operatorframework.io_clusterextensions.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -456,6 +456,8 @@ spec:
456456
properties:
457457
conditions:
458458
description: |-
459+
conditions represents the current state of the ClusterExtension.
460+
459461
The set of condition types which apply to all spec.source variations are Installed and Progressing.
460462
461463
The Installed condition represents whether the bundle has been installed for this ClusterExtension:

manifests/experimental-e2e.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1461,6 +1461,8 @@ spec:
14611461
x-kubernetes-list-type: map
14621462
conditions:
14631463
description: |-
1464+
conditions represents the current state of the ClusterExtension.
1465+
14641466
The set of condition types which apply to all spec.source variations are Installed and Progressing.
14651467
14661468
The Installed condition represents whether the bundle has been installed for this ClusterExtension:

manifests/experimental.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1422,6 +1422,8 @@ spec:
14221422
x-kubernetes-list-type: map
14231423
conditions:
14241424
description: |-
1425+
conditions represents the current state of the ClusterExtension.
1426+
14251427
The set of condition types which apply to all spec.source variations are Installed and Progressing.
14261428
14271429
The Installed condition represents whether the bundle has been installed for this ClusterExtension:

manifests/standard-e2e.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1066,6 +1066,8 @@ spec:
10661066
properties:
10671067
conditions:
10681068
description: |-
1069+
conditions represents the current state of the ClusterExtension.
1070+
10691071
The set of condition types which apply to all spec.source variations are Installed and Progressing.
10701072
10711073
The Installed condition represents whether the bundle has been installed for this ClusterExtension:

manifests/standard.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1027,6 +1027,8 @@ spec:
10271027
properties:
10281028
conditions:
10291029
description: |-
1030+
conditions represents the current state of the ClusterExtension.
1031+
10301032
The set of condition types which apply to all spec.source variations are Installed and Progressing.
10311033
10321034
The Installed condition represents whether the bundle has been installed for this ClusterExtension:

0 commit comments

Comments
 (0)