Skip to content
Snippets Groups Projects
SPEC.md 1.5 KiB
Newer Older
steeve.chailloux's avatar
steeve.chailloux committed
# Specification

Directory layout:

```
.
├── base
│   ├── odoo.yml
│   ├── postgres.yml
│   └── ytt
│       ├── patch.yml
│       ├── resources.yml
│       └── values.yml
├── beaver.yml
├── builds
│   ├── prod
│   │   ├── deployment.odoo.yml
│   │   └── statefulset.postgresql.yml
│   └── test
│       ├── deployment.odoo.yml
│       └── statefulset.postgresql.yml
├── environments
│   ├── prod
│   │   ├── odoo.yml
│   │   ├── postgres.yml
│   │   └── ytt
│   │       ├── patch.yml
│   │       └── values.yml
│   └── test
│       ├── beaver.yml
│       └── odoo.yml
steeve.chailloux's avatar
steeve.chailloux committed
└── vendir.yml
```

- `beaver.yml`: beaver.cloudcrane.io config file.
	- filename is mandatory, cannot use another name (must be uniq per project)
- `<other-files>.yml`: charts (static) values files


Command: `beaver build <namespace>`

Should build charts, exemple:

```sh
helm template postgresql vendor/helm/postgresql \
    --namespace <namespace> \
    -f /tmp/values-from-config.yaml \
steeve.chailloux's avatar
steeve.chailloux committed
    -f base/postgres.yaml \
    (if ./<namespace>/postgres.yaml then -f ./<namespace>/postgres.yaml fi) \
    > /tmp/resources.yaml
```

if ./base/ytt then
  # TODO: exec ytt patches
fi

if ./<namespace>/beaver.yaml then
  # TODO: exec beaver build
fi

if ./<namespace>/ytt then
  # TODO: exec ytt patches
fi