Skip to content

Commit c220c5e

Browse files
authored
Merge pull request #199 from weinimo/readme
Update README.md
2 parents e92898a + c6c7467 commit c220c5e

File tree

2 files changed

+46
-15
lines changed

2 files changed

+46
-15
lines changed

README.md

Lines changed: 37 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,24 @@
11
# octavia-operator
2-
// TODO(user): Add simple overview of use/purpose
2+
3+
A Kubernetes Operator built using
4+
the [Operator Framework](https://github.com/operator-framework) for Go. It
5+
manages the lifecycle of
6+
[Openstack Octavia](https://docs.openstack.org/octavia/latest/index.html).
37

48
## Description
5-
// TODO(user): An in-depth paragraph about your project and overview of use
9+
10+
Octavia is a Loadbalancer-as-a-service (LBaas) solution for Openstack.
611

712
## Getting Started
8-
You’ll need a Kubernetes cluster to run against. You can use [KIND](https://sigs.k8s.io/kind) to get a local cluster for testing, or run against a remote cluster.
9-
**Note:** Your controller will automatically use the current context in your kubeconfig file (i.e. whatever cluster `kubectl cluster-info` shows).
13+
14+
You’ll need a Kubernetes cluster to run against. You can
15+
use [KIND](https://sigs.k8s.io/kind) to get a local cluster for testing, or run
16+
against a remote cluster.
17+
**Note:** Your controller will automatically use the current context in your
18+
kubeconfig file (i.e. whatever cluster `kubectl cluster-info` shows).
1019

1120
### Running on the cluster
21+
1222
1. Install Instances of Custom Resources:
1323

1424
```sh
@@ -35,29 +45,47 @@ make uninstall
3545
```
3646

3747
### Undeploy controller
48+
3849
UnDeploy the controller to the cluster:
3950

4051
```sh
4152
make undeploy
4253
```
4354

55+
## Development setup
56+
57+
This code repository contains an Ansible playbook and a role that automates the
58+
setup of a development environment using
59+
[install_yamls](https://github.com/openstack-k8s-operators/install_yamls).
60+
Further information can be found [here](install_yamls_setup/README.md) in the
61+
`README.md` file in the `install_yamls_setup` sub folder of this Git repository.
62+
4463
## Contributing
45-
// TODO(user): Add detailed information on how you would like others to contribute to this project
64+
65+
This project accepts pull requests on Github and follows
66+
the [Kubernetes code review process](https://github.com/kubernetes/community/blob/master/contributors/guide/owners.md#the-code-review-process)
67+
for integration.
4668

4769
### How it works
48-
This project aims to follow the Kubernetes [Operator pattern](https://kubernetes.io/docs/concepts/extend-kubernetes/operator/)
4970

50-
It uses [Controllers](https://kubernetes.io/docs/concepts/architecture/controller/)
51-
which provides a reconcile function responsible for synchronizing resources untile the desired state is reached on the cluster
71+
This project aims to follow the
72+
Kubernetes [Operator pattern](https://kubernetes.io/docs/concepts/extend-kubernetes/operator/)
73+
74+
It uses
75+
[Controllers](https://kubernetes.io/docs/concepts/architecture/controller/)
76+
which provides a reconcile function responsible for synchronizing resources
77+
untile the desired state is reached on the cluster
5278

5379
### Test It Out
80+
5481
1. Install the CRDs into the cluster:
5582

5683
```sh
5784
make install
5885
```
5986

60-
2. Run your controller (this will run in the foreground, so switch to a new terminal if you want to leave it running):
87+
2. Run your controller (this will run in the foreground, so switch to a new
88+
terminal if you want to leave it running):
6189

6290
```sh
6391
make run

install_yamls_setup/README.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,17 @@ defined:
1414
podman_quayio_user: <user>
1515
podman_quayio_password: <password>
1616

17-
The recommended way to manage those secrets is using `ansible-vault`. Pay attention that
18-
`openshift_pull_secret` needs to be a string and hence the JSON data needs to be put in
19-
quotes.
17+
The recommended way to manage those secrets is using `ansible-vault`. Pay
18+
attention that `openshift_pull_secret` is put in quotes so that the
19+
JSON structure is stored as a string.
2020

2121
## Playbook
2222

23-
The `playbook.yaml` file can be used for running the role. Create an
24-
inventory file (e.g. named `hosts`) to define the host(s). Then run the playbook
25-
like so:
23+
The `playbook.yaml` file can be used for running the role. Create an inventory
24+
file (e.g. named `hosts`) to define the host(s). Then run the playbook like so:
2625

2726
ansible-playbook -i hosts -D playbook.yaml
27+
28+
When using `ansible-vault` for storing secrets, additional vault specific
29+
arguments will need to be provided. When an encrypted variable file is used add
30+
the `-e @<filename>` argument.

0 commit comments

Comments
 (0)