Skip to content

Commit 045b9d6

Browse files
committed
Document ShipwrightBuild
- Describe the fields in the ShipwrightBuild CRD. - Indicate which version of Shipwright Builds is installed. - Add installation instructions to the README. - Remove instruction that the target namespace needs to be created first.
1 parent 1489386 commit 045b9d6

File tree

4 files changed

+28
-9
lines changed

4 files changed

+28
-9
lines changed

README.md

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,21 @@
22

33
An operator to install and configure [Shipwright](https://shipwright.io) on Kubernetes clusters.
44

5-
## Contributing
5+
## Installation
66

7-
See [CONTRIBUTING.md](CONTRIBUTING.md) for more information on how to build, test, and submit
8-
contributions to the operator.
7+
The Shipwright operator is designed to be installed with the [Operator Lifecycle Manager](https://olm.operatorframework.io/) ("OLM").
8+
Before installation, ensure that OLM has been deployed on your cluster by following the [OLM installation instructions](https://olm.operatorframework.io/docs/getting-started/#installing-olm-in-your-cluster).
9+
10+
Once OLM has been deployed, use the following command to install the latest operator release from [operatorhub.io](https://operatorhub.io/operator/shipwright-operator):
11+
12+
```sh
13+
$ kubectl apply -f https://operatorhub.io/install/shipwright-operator.yaml
14+
```
915

1016
## Usage
1117

1218
To deploy and manage [Shipwright Builds](https://github.com/shipwright-io/build) in your cluster,
13-
first make sure this operator is installed and running on your cluster.
19+
first make sure this operator is installed and running.
1420

1521
Next, create the following:
1622

@@ -26,5 +32,9 @@ spec:
2632
2733
The operator will deploy Shipwright Builds in the provided `targetNamespace`.
2834
When `.spec.targetNamespace` is not set, the namespace will default to `shipwright-build`.
35+
Refer to the [ShipwrightBuild documentation](docs/shipwrightbuild.md) for more information about this custom resource.
36+
37+
## Contributing
2938

30-
_Note: this namespace needs to be created before the actual deployment takes place._
39+
See [CONTRIBUTING.md](CONTRIBUTING.md) for more information on how to build, test, and submit
40+
contributions to the operator.

bundle/manifests/shipwright-operator.clusterserviceversion.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,6 @@ spec:
6363
6464
The operator will deploy Shipwright Builds in the provided `targetNamespace`.
6565
When `.spec.targetNamespace` is not set, the namespace will default to `shipwright-build`.
66-
67-
_Note: this namespace needs to be created before the actual deployment takes place._
6866
displayName: Shipwright Operator
6967
icon:
7068
- base64data: |

config/manifests/bases/shipwright-operator.clusterserviceversion.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,6 @@ spec:
4949
5050
The operator will deploy Shipwright Builds in the provided `targetNamespace`.
5151
When `.spec.targetNamespace` is not set, the namespace will default to `shipwright-build`.
52-
53-
_Note: this namespace needs to be created before the actual deployment takes place._
5452
displayName: Shipwright Operator
5553
icon:
5654
- base64data: |

docs/shipwrightbuild.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# ShipwrightBuild Custom Resource
2+
3+
When the Shipwright Operator is installed with the Operator Lifecycle Manager, the
4+
`ShipwrightBuild` [custom resource definition](https://kubernetes.io/docs/concepts/extend-kubernetes/api-extension/custom-resources/) is added to your cluster.
5+
This custom resource is used to install and configure Shipwright Builds on your cluster.
6+
The current operator will install version `0.9.0` of Builds.
7+
8+
## ShipwrightBuild Reference
9+
10+
| Field | Description |
11+
| ----- | ----------- |
12+
| spec.targetNamespace | The target namespace where Shipwright Build will be deployed. If omitted, this will default to `shipwright-build` |
13+
| status.conditions | Conditions which report the status of Shipwright Build. Current reported conditions:<br><br>- `Ready` |

0 commit comments

Comments
 (0)