Newer
Older
# Specification
Directory layout:
```
.
├── base
│ ├── beaver.yml
│ ├── odoo.yml
│ └── postgres.yml
├── prod
│ ├── odoo.yml
│ └── postgres.yml
├── prod-build
│ ├── <namespace>.<type>.<name>.yml
│ ├── prod.statefulset.postgresql.yml
│ └── prod.deployment.odoo.yml
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
├── test
│ ├── beaver.yml
│ └── odoo.yml
└── 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-above.yaml \
-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