https://github.com/ursais/odoo-operator
Odoo Operator built using the Operator SDK.
https://github.com/ursais/odoo-operator
ansible cluster kubernetes kubernetes-operator odoo-instance odoo-operator operator operator-sdk
Last synced: 5 months ago
JSON representation
Odoo Operator built using the Operator SDK.
- Host: GitHub
- URL: https://github.com/ursais/odoo-operator
- Owner: ursais
- Created: 2020-07-05T22:26:38.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2021-04-28T21:40:50.000Z (about 5 years ago)
- Last Synced: 2023-03-02T10:16:37.056Z (over 3 years ago)
- Topics: ansible, cluster, kubernetes, kubernetes-operator, odoo-instance, odoo-operator, operator, operator-sdk
- Language: Jinja
- Homepage: https://hub.docker.com/repository/docker/ursa/odoo-operator
- Size: 133 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://quay.io/repository/ursais/odoo-operator)
# Odoo Operator
## Table of Contents
* [Prerequisites](#Prerequisites)
* [Build the operator](#Build-the-operator)
* [Build the bundle](#Build-the-bundle)
* [Usage](#Usage)
* [Support](#Support)
## Prerequisites
* Go through the [installation guide](https://sdk.operatorframework.io/docs/building-operators/ansible/installation).
* User authorized with `cluster-admin` permissions.
## Build the operator
Build and push the operator:
```shell
export VERSION=0.0.2
export OPERATOR_IMG="docker.io/ursa/odoo-operator:$VERSION"
make docker-build docker-push IMG=$OPERATOR_IMG
```
## Build the bundle
Bundle your operator and push the bundle image:
```shell
make bundle IMG=$OPERATOR_IMG
export BUNDLE_IMG="docker.io/ursa/odoo-operator-bundle:$VERSION"
make bundle-build BUNDLE_IMG=$BUNDLE_IMG
make docker-push IMG=$BUNDLE_IMG
```
## Usage
Run your bundle:
```shell
export BUNDLE_IMG="docker.io/ursa/odoo-operator-bundle:$VERSION"
operator-sdk run bundle $BUNDLE_IMG
```
Create a sample Odoo custom resource:
```shell
kubectl apply -f config/samples/apps_v1alpha1_odoo.yaml
```
Uninstall the operator:
```shell
operator-sdk cleanup odoo-operator
```
## Support
Report any problem or question by creating an issue on the
[GitHub project](https://github.com/ursais/odoo-operator/issues).