Skip to content
Snippets Groups Projects
Commit cfa4f324e583 authored by steeve.chailloux's avatar steeve.chailloux
Browse files

basic specifications

parent 5d2f94a2c3f1
No related branches found
No related tags found
No related merge requests found
SPEC.md 0 → 100644
# Specification
Directory layout:
```
.
├── base
│ ├── beaver.yml
│ ├── odoo.yml
│ └── postgres.yml
├── prod
│ ├── odoo.yml
│ └── postgres.yml
├── 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
apiVersion: beaver.cloudcrane.io/v1alpha0
kind: Config
spec:
env:
- name: VAULT_KV
value: cnpp.k8s.cloudcrane.io
charts:
postgres:
type: helm
name: postgresql
values:
config:
datasource:
password: "<path:{.VAULT_KV}/data/{.namespace}/postgres#password>"
fullnameOverride: "pg-exporter-{.namespace}"
odoo:
type: ytt
name: odoo
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment