Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
beaver
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
orus-io
beaver
Commits
4cf93d72
Commit
4cf93d72
authored
2 years ago
by
steeve.chailloux
Browse files
Options
Downloads
Patches
Plain Diff
improve specifications
parent
dc1ec360
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
SPEC.md
+24
-14
24 additions, 14 deletions
SPEC.md
config.yaml
+8
-3
8 additions, 3 deletions
config.yaml
with
32 additions
and
17 deletions
SPEC.md
+
24
−
14
View file @
4cf93d72
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
config.yaml
+
8
−
3
View file @
4cf93d72
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
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment