Skip to content

Commit 4a15948

Browse files
author
Per Goncalves da Silva
committed
First stab at doc hierarchy
Signed-off-by: Per Goncalves da Silva <[email protected]>
1 parent 15401fb commit 4a15948

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+211
-210
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ OLM v1 consists of two different components:
1616
* operator-controller (this repository)
1717
* [catalogd](https://github.com/operator-framework/catalogd)
1818

19-
For a more complete overview of OLM v1 and how it differs from OLM v0, see our [overview](docs/general/olmv1_design_decisions.md).
19+
For a more complete overview of OLM v1 and how it differs from OLM v0, see our [overview](docs/overview/olmv1_design_decisions.md).
2020

2121
## Getting Started
2222

23-
To get started with OLM v1, please see our [Getting Started](docs/general/olmv1_getting_started.md) documentation.
23+
To get started with OLM v1, please see our [Getting Started](docs/overview/olmv1_getting_started.md) documentation.
2424

2525
## License
2626

api/v1alpha1/clusterextension_types.go

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,13 @@ type ClusterExtensionSpec struct {
4949
// for this ClusterExtension. Selection is performed by setting the sourceType.
5050
//
5151
// Catalog is currently the only implemented sourceType, and setting the
52-
// sourcetype to "Catalog" requires the catalog field to also be defined.
52+
// sourcetype to "Catalog" requires the content-management field to also be defined.
5353
//
5454
// Below is a minimal example of a source definition (in yaml):
5555
//
5656
// source:
5757
// sourceType: Catalog
58-
// catalog:
58+
// content-management:
5959
// packageName: example-package
6060
//
6161
Source SourceConfig `json:"source"`
@@ -76,25 +76,25 @@ const SourceTypeCatalog = "Catalog"
7676

7777
// SourceConfig is a discriminated union which selects the installation source.
7878
// +union
79-
// +kubebuilder:validation:XValidation:rule="self.sourceType == 'Catalog' && has(self.catalog)",message="sourceType Catalog requires catalog field"
79+
// +kubebuilder:validation:XValidation:rule="self.sourceType == 'Catalog' && has(self.content-management)",message="sourceType Catalog requires content-management field"
8080
type SourceConfig struct {
8181
// sourceType is a required reference to the type of install source.
8282
//
8383
// Allowed values are ["Catalog"]
8484
//
8585
// When this field is set to "Catalog", information for determining the appropriate
8686
// bundle of content to install will be fetched from ClusterCatalog resources existing
87-
// on the cluster. When using the Catalog sourceType, the catalog field must also be set.
87+
// on the cluster. When using the Catalog sourceType, the content-management field must also be set.
8888
//
8989
// +unionDiscriminator
9090
// +kubebuilder:validation:Enum:="Catalog"
9191
SourceType string `json:"sourceType"`
9292

93-
// catalog is used to configure how information is sourced from a catalog. This field must be defined when sourceType is set to "Catalog",
93+
// content-management is used to configure how information is sourced from a content-management. This field must be defined when sourceType is set to "Catalog",
9494
// and must be the only field defined for this sourceType.
9595
//
9696
// +optional.
97-
Catalog *CatalogSource `json:"catalog,omitempty"`
97+
Catalog *CatalogSource `json:"content-management,omitempty"`
9898
}
9999

100100
// ClusterExtensionInstallConfig is a union which selects the clusterExtension installation config.
@@ -152,7 +152,7 @@ type ClusterExtensionInstallConfig struct {
152152
Preflight *PreflightConfig `json:"preflight,omitempty"`
153153
}
154154

155-
// CatalogSource defines the required fields for catalog source.
155+
// CatalogSource defines the required fields for content-management source.
156156
type CatalogSource struct {
157157
// packageName is a reference to the name of the package to be installed
158158
// and is used to filter the content from catalogs.
@@ -319,7 +319,7 @@ type CatalogSource struct {
319319
Selector metav1.LabelSelector `json:"selector,omitempty"`
320320

321321
// upgradeConstraintPolicy is an optional field that controls whether
322-
// the upgrade path(s) defined in the catalog are enforced for the package
322+
// the upgrade path(s) defined in the content-management are enforced for the package
323323
// referenced in the packageName field.
324324
//
325325
// Allowed values are: ["CatalogProvided", "SelfCertified"].
@@ -484,10 +484,10 @@ type ClusterExtensionStatus struct {
484484
// - "Resolved", represents whether or not a bundle was found that satisfies the selection criteria outlined in the spec
485485
// - "Unpacked", represents whether or not the bundle contents have been successfully unpacked
486486
//
487-
// When the ClusterExtension is sourced from a catalog, the following conditions are also possible:
487+
// When the ClusterExtension is sourced from a content-management, the following conditions are also possible:
488488
// - "Deprecated", represents an aggregation of the PackageDeprecated, ChannelDeprecated, and BundleDeprecated condition types
489-
// - "PackageDeprecated", represents whether or not the package specified in the spec.source.catalog.packageName field has been deprecated
490-
// - "ChannelDeprecated", represents whether or not any channel specified in spec.source.catalog.channels has been deprecated
489+
// - "PackageDeprecated", represents whether or not the package specified in the spec.source.content-management.packageName field has been deprecated
490+
// - "ChannelDeprecated", represents whether or not any channel specified in spec.source.content-management.channels has been deprecated
491491
// - "BundleDeprecated", represents whether or not the installed bundle is deprecated
492492
//
493493
// The current set of reasons are:

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -454,8 +454,8 @@ spec:
454454
- sourceType
455455
type: object
456456
x-kubernetes-validations:
457-
- message: sourceType Catalog requires catalog field
458-
rule: self.sourceType == 'Catalog' && has(self.catalog)
457+
- message: sourceType Catalog requires content-management field
458+
rule: self.sourceType == 'Catalog' && has(self.content-management)
459459
required:
460460
- install
461461
- source

config/samples/catalogd_operatorcatalog.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ spec:
66
source:
77
type: image
88
image:
9-
ref: quay.io/operatorhubio/catalog:latest
9+
ref: quay.io/operatorhubio/content-management:latest
1010
pollInterval: 10m
File renamed without changes.
File renamed without changes.

docs/contribute/contributing.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../CONTRIBUTING.md
File renamed without changes.

docs/general/olmv1_overview.md renamed to docs/index.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# Overview
2-
31
## What is Operator Lifecycle Manager (OLM)?
42

53
Operator Lifecycle Manager (OLM) is an open-source [CNCF](https://www.cncf.io/) project with the mission to manage the
@@ -37,8 +35,8 @@ Compared to its predecessor, amongst other things, OLM v1 aims to provide:
3735
* Helm Chart support
3836
* GitOps support
3937

40-
To learn more about where v1 one came from, and where it's going, please see [The Road to v1: Multi-Tenancy Challenges, Lessons Learned, and Design Shifts](olmv1_design_decisions.md)
41-
and our feature [Roadmap](olmv1_roadmap.md).
38+
To learn more about where v1 one came from, and where it's going, please see [The Road to v1: Multi-Tenancy Challenges, Lessons Learned, and Design Shifts](overview/olmv1_design_decisions.md)
39+
and our feature [Roadmap](overview/olmv1_roadmap.md).
4240

4341
## The OLM community
4442

@@ -52,4 +50,4 @@ You can reach out to the OLM community for feedbacks/discussions/contributions i
5250
* [Operator Framework on Google Groups](https://groups.google.com/forum/#!forum/operator-framework)
5351
* Weekly in-person Working Group meeting: [olm-wg](https://github.com/operator-framework/community#operator-lifecycle-manager-working-group)
5452

55-
For further information on contributing, please consult the [Contribution Guide](../../CONTRIBUTING.md)
53+
For further information on contributing, please consult the [Contribution Guide](../CONTRIBUTING.md)

0 commit comments

Comments
 (0)