diff --git a/SPEC.md b/SPEC.md new file mode 100644 index 0000000000000000000000000000000000000000..cfa4f324e583ab8e18344c01b87ee271ca532fb5_U1BFQy5tZA== --- /dev/null +++ b/SPEC.md @@ -0,0 +1,48 @@ +# 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 diff --git a/config.yaml b/config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..cfa4f324e583ab8e18344c01b87ee271ca532fb5_Y29uZmlnLnlhbWw= --- /dev/null +++ b/config.yaml @@ -0,0 +1,18 @@ +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