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

improve specifications

parent dc1ec360
No related branches found
No related tags found
No related merge requests found
......@@ -5,5 +5,4 @@
```
.
├── base
│ ├── beaver.yml
│ ├── odoo.yml
......@@ -9,16 +8,27 @@
│ ├── odoo.yml
│ ├── ytt/
│ └── postgres.yml
├── prod
│ ├── odoo.yml
│ └── postgres.yml
├── prod-build
│ ├── <namespace>.<type>.<name>.yml
│ ├── prod.statefulset.postgresql.yml
│ └── prod.deployment.odoo.yml
├── test
│ ├── beaver.yml
│ └── 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
└── vendir.yml
```
......@@ -34,7 +44,7 @@
```sh
helm template postgresql vendor/helm/postgresql \
--namespace <namespace> \
-f /tmp/values-above.yaml \
-f /tmp/values-from-config.yaml \
-f base/postgres.yaml \
(if ./<namespace>/postgres.yaml then -f ./<namespace>/postgres.yaml fi) \
> /tmp/resources.yaml
......
apiVersion: beaver.cloudcrane.io/v1alpha0
kind: Config
spec:
# Global env var:
# Global variables:
# - Can be accumulated/overwriten over beaver config files
......@@ -5,4 +5,4 @@
# - Can be accumulated/overwriten over beaver config files
env:
variables:
- name: VAULT_KV
value: cnpp.k8s.cloudcrane.io
......@@ -7,6 +7,12 @@
- name: VAULT_KV
value: cnpp.k8s.cloudcrane.io
ytt:
values:
- key: vault.kv
value: {.VAULT_KV}
- key: namespace
value: {.namespace}
charts:
postgres:
type: helm
name: postgresql
......@@ -9,8 +15,7 @@
charts:
postgres:
type: helm
name: postgresql
# Dynamic values can use env variables
values:
config:
datasource:
......
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