Skip to content

Commit 0bbdec8

Browse files
committed
Add documentation URLs into CRD descriptions
These documentation URLs are templated, so that they can be updated downstream as needed. Signed-off-by: Todd Short <tshort@redhat.com>
1 parent f17f3c5 commit 0bbdec8

13 files changed

+35
-6
lines changed

api/v1/clustercatalog_types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ const (
5353

5454
// ClusterCatalog enables users to make File-Based Catalog (FBC) catalog data available to the cluster.
5555
// For more information on FBC, see https://olm.operatorframework.io/docs/reference/file-based-catalogs/#docs
56+
// Please see ClusterCatalog documentation located at {{ .Values.docs.clusterCatalogURL }}
5657
type ClusterCatalog struct {
5758
metav1.TypeMeta `json:",inline"`
5859

api/v1/clusterextension_types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -527,6 +527,7 @@ type ClusterExtensionInstallStatus struct {
527527
// +kubebuilder:printcolumn:name=Age,type=date,JSONPath=`.metadata.creationTimestamp`
528528

529529
// ClusterExtension is the Schema for the clusterextensions API
530+
// Please see ClusterExtension documentation located at {{ .Values.docs.clusterExtensionURL }}
530531
type ClusterExtension struct {
531532
metav1.TypeMeta `json:",inline"`
532533
metav1.ObjectMeta `json:"metadata,omitempty"`

api/v1/clusterextensionrevision_types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ type ClusterExtensionRevisionStatus struct {
214214
// at a time. Ownership of objects is transitioned from one revision to the next as the extension is upgraded
215215
// or reconfigured. Once the latest revision has rolled out successfully, previous active revisions are archived for
216216
// posterity.
217+
// Please see ClusterExtensionRevision documentation located at {{ .Values.docs.clusterExtensionRevisionURL }}
217218
type ClusterExtensionRevision struct {
218219
metav1.TypeMeta `json:",inline"`
219220
metav1.ObjectMeta `json:"metadata,omitempty"`

helm/olmv1/base/catalogd/crd/experimental/olm.operatorframework.io_clustercatalogs.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ spec:
3131
description: |-
3232
ClusterCatalog enables users to make File-Based Catalog (FBC) catalog data available to the cluster.
3333
For more information on FBC, see https://olm.operatorframework.io/docs/reference/file-based-catalogs/#docs
34+
Please see ClusterCatalog documentation located at {{ .Values.docs.clusterCatalogURL }}
3435
properties:
3536
apiVersion:
3637
description: |-

helm/olmv1/base/catalogd/crd/standard/olm.operatorframework.io_clustercatalogs.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ spec:
3131
description: |-
3232
ClusterCatalog enables users to make File-Based Catalog (FBC) catalog data available to the cluster.
3333
For more information on FBC, see https://olm.operatorframework.io/docs/reference/file-based-catalogs/#docs
34+
Please see ClusterCatalog documentation located at {{ .Values.docs.clusterCatalogURL }}
3435
properties:
3536
apiVersion:
3637
description: |-

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ spec:
3535
at a time. Ownership of objects is transitioned from one revision to the next as the extension is upgraded
3636
or reconfigured. Once the latest revision has rolled out successfully, previous active revisions are archived for
3737
posterity.
38+
Please see ClusterExtensionRevision documentation located at {{ .Values.docs.clusterExtensionRevisionURL }}
3839
properties:
3940
apiVersion:
4041
description: |-

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ spec:
3434
name: v1
3535
schema:
3636
openAPIV3Schema:
37-
description: ClusterExtension is the Schema for the clusterextensions API
37+
description: |-
38+
ClusterExtension is the Schema for the clusterextensions API
39+
Please see ClusterExtension documentation located at {{ .Values.docs.clusterExtensionURL }}
3840
properties:
3941
apiVersion:
4042
description: |-

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ spec:
3434
name: v1
3535
schema:
3636
openAPIV3Schema:
37-
description: ClusterExtension is the Schema for the clusterextensions API
37+
description: |-
38+
ClusterExtension is the Schema for the clusterextensions API
39+
Please see ClusterExtension documentation located at {{ .Values.docs.clusterExtensionURL }}
3840
properties:
3941
apiVersion:
4042
description: |-

helm/olmv1/values.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,3 +96,8 @@ deployments:
9696
- ALL
9797
readOnlyRootFilesystem: true
9898
terminationMessagePolicy: FallbackToLogsOnError
99+
# Documentation URLs
100+
docs:
101+
clusterExtensionURL: https://www.example.com/ClusterExtension
102+
clusterExtensionRevisionURL: https://www.example.com/ClusterExtensionRevision
103+
clusterCatalogURL: https://www.example.com/ClusterCatalog

manifests/experimental-e2e.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ spec:
213213
description: |-
214214
ClusterCatalog enables users to make File-Based Catalog (FBC) catalog data available to the cluster.
215215
For more information on FBC, see https://olm.operatorframework.io/docs/reference/file-based-catalogs/#docs
216+
Please see ClusterCatalog documentation located at https://www.example.com/ClusterCatalog
216217
properties:
217218
apiVersion:
218219
description: |-
@@ -660,6 +661,7 @@ spec:
660661
at a time. Ownership of objects is transitioned from one revision to the next as the extension is upgraded
661662
or reconfigured. Once the latest revision has rolled out successfully, previous active revisions are archived for
662663
posterity.
664+
Please see ClusterExtensionRevision documentation located at https://www.example.com/ClusterExtensionRevision
663665
properties:
664666
apiVersion:
665667
description: |-
@@ -934,7 +936,9 @@ spec:
934936
name: v1
935937
schema:
936938
openAPIV3Schema:
937-
description: ClusterExtension is the Schema for the clusterextensions API
939+
description: |-
940+
ClusterExtension is the Schema for the clusterextensions API
941+
Please see ClusterExtension documentation located at https://www.example.com/ClusterExtension
938942
properties:
939943
apiVersion:
940944
description: |-

0 commit comments

Comments
 (0)