fix
This commit is contained in:
@@ -6,6 +6,154 @@ metadata:
|
|||||||
name: domain-devspaces
|
name: domain-devspaces
|
||||||
description: null
|
description: null
|
||||||
options:
|
options:
|
||||||
|
distributions:
|
||||||
|
default:
|
||||||
|
domain: domain
|
||||||
|
core: core
|
||||||
|
examples:
|
||||||
|
- domain: domain
|
||||||
|
core: core
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
core:
|
||||||
|
type: string
|
||||||
|
default: core
|
||||||
|
domain:
|
||||||
|
type: string
|
||||||
|
default: domain
|
||||||
|
images:
|
||||||
|
default:
|
||||||
|
codeserver:
|
||||||
|
registry: docker.io
|
||||||
|
repository: sebt3/code-server
|
||||||
|
tag: 4.15
|
||||||
|
pullPolicy: IfNotPresent
|
||||||
|
properties:
|
||||||
|
codeserver:
|
||||||
|
properties:
|
||||||
|
pullPolicy:
|
||||||
|
enum:
|
||||||
|
- Always
|
||||||
|
- Never
|
||||||
|
- IfNotPresent
|
||||||
|
type: string
|
||||||
|
default: IfNotPresent
|
||||||
|
registry:
|
||||||
|
type: string
|
||||||
|
default: docker.io
|
||||||
|
repository:
|
||||||
|
type: string
|
||||||
|
default: sebt3/code-server
|
||||||
|
tag:
|
||||||
|
type: number
|
||||||
|
default: 4.15
|
||||||
|
type: object
|
||||||
|
default:
|
||||||
|
registry: docker.io
|
||||||
|
repository: sebt3/code-server
|
||||||
|
tag: 4.15
|
||||||
|
pullPolicy: IfNotPresent
|
||||||
|
examples:
|
||||||
|
- codeserver:
|
||||||
|
registry: docker.io
|
||||||
|
repository: sebt3/code-server
|
||||||
|
tag: 4.15
|
||||||
|
pullPolicy: IfNotPresent
|
||||||
|
type: object
|
||||||
|
domain-name:
|
||||||
|
default: your_company.com
|
||||||
|
examples:
|
||||||
|
- your_company.com
|
||||||
|
type: string
|
||||||
|
issuer:
|
||||||
|
default: letsencrypt-prod
|
||||||
|
examples:
|
||||||
|
- letsencrypt-prod
|
||||||
|
type: string
|
||||||
|
domain:
|
||||||
|
default: your-company
|
||||||
|
examples:
|
||||||
|
- your-company
|
||||||
|
type: string
|
||||||
|
app-group:
|
||||||
|
default: dev
|
||||||
|
examples:
|
||||||
|
- dev
|
||||||
|
type: string
|
||||||
|
stations-sub-domain:
|
||||||
|
default: code
|
||||||
|
examples:
|
||||||
|
- code
|
||||||
|
type: string
|
||||||
|
ingress-class:
|
||||||
|
default: traefik
|
||||||
|
examples:
|
||||||
|
- traefik
|
||||||
|
type: string
|
||||||
|
storage-classes:
|
||||||
|
default:
|
||||||
|
FilesystemReadWriteMany: ''
|
||||||
|
FilesystemReadWriteOnce: ''
|
||||||
|
BlockReadWriteMany: ''
|
||||||
|
BlockReadWriteOnce: ''
|
||||||
|
examples:
|
||||||
|
- FilesystemReadWriteMany: ''
|
||||||
|
FilesystemReadWriteOnce: ''
|
||||||
|
BlockReadWriteMany: ''
|
||||||
|
BlockReadWriteOnce: ''
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
BlockReadWriteMany:
|
||||||
|
type: string
|
||||||
|
default: ''
|
||||||
|
BlockReadWriteOnce:
|
||||||
|
type: string
|
||||||
|
default: ''
|
||||||
|
FilesystemReadWriteMany:
|
||||||
|
type: string
|
||||||
|
default: ''
|
||||||
|
FilesystemReadWriteOnce:
|
||||||
|
type: string
|
||||||
|
default: ''
|
||||||
|
organisations:
|
||||||
|
default: []
|
||||||
|
items:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
name:
|
||||||
|
type: string
|
||||||
|
default: ''
|
||||||
|
datasets:
|
||||||
|
default: []
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
name:
|
||||||
|
default: ''
|
||||||
|
type: string
|
||||||
|
engine:
|
||||||
|
default: pg
|
||||||
|
type: string
|
||||||
|
examples:
|
||||||
|
- []
|
||||||
|
type: array
|
||||||
|
stations:
|
||||||
|
default: []
|
||||||
|
items:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
name:
|
||||||
|
type: string
|
||||||
|
default: ''
|
||||||
|
organisations:
|
||||||
|
default: []
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
examples:
|
||||||
|
- []
|
||||||
|
type: array
|
||||||
apps:
|
apps:
|
||||||
default:
|
default:
|
||||||
dbgate:
|
dbgate:
|
||||||
@@ -47,16 +195,6 @@ options:
|
|||||||
default: false
|
default: false
|
||||||
default:
|
default:
|
||||||
enable: false
|
enable: false
|
||||||
domain-name:
|
|
||||||
default: your_company.com
|
|
||||||
examples:
|
|
||||||
- your_company.com
|
|
||||||
type: string
|
|
||||||
domain:
|
|
||||||
default: your-company
|
|
||||||
examples:
|
|
||||||
- your-company
|
|
||||||
type: string
|
|
||||||
external-databases:
|
external-databases:
|
||||||
default: []
|
default: []
|
||||||
items:
|
items:
|
||||||
@@ -130,144 +268,6 @@ options:
|
|||||||
secret-name:
|
secret-name:
|
||||||
type: string
|
type: string
|
||||||
default: backup-settings
|
default: backup-settings
|
||||||
distributions:
|
|
||||||
default:
|
|
||||||
domain: domain
|
|
||||||
core: core
|
|
||||||
examples:
|
|
||||||
- domain: domain
|
|
||||||
core: core
|
|
||||||
type: object
|
|
||||||
properties:
|
|
||||||
core:
|
|
||||||
type: string
|
|
||||||
default: core
|
|
||||||
domain:
|
|
||||||
type: string
|
|
||||||
default: domain
|
|
||||||
issuer:
|
|
||||||
default: letsencrypt-prod
|
|
||||||
examples:
|
|
||||||
- letsencrypt-prod
|
|
||||||
type: string
|
|
||||||
app-group:
|
|
||||||
default: dev
|
|
||||||
examples:
|
|
||||||
- dev
|
|
||||||
type: string
|
|
||||||
stations-sub-domain:
|
|
||||||
default: code
|
|
||||||
examples:
|
|
||||||
- code
|
|
||||||
type: string
|
|
||||||
storage-classes:
|
|
||||||
default:
|
|
||||||
FilesystemReadWriteMany: ''
|
|
||||||
FilesystemReadWriteOnce: ''
|
|
||||||
BlockReadWriteMany: ''
|
|
||||||
BlockReadWriteOnce: ''
|
|
||||||
examples:
|
|
||||||
- FilesystemReadWriteMany: ''
|
|
||||||
FilesystemReadWriteOnce: ''
|
|
||||||
BlockReadWriteMany: ''
|
|
||||||
BlockReadWriteOnce: ''
|
|
||||||
type: object
|
|
||||||
properties:
|
|
||||||
BlockReadWriteMany:
|
|
||||||
type: string
|
|
||||||
default: ''
|
|
||||||
BlockReadWriteOnce:
|
|
||||||
type: string
|
|
||||||
default: ''
|
|
||||||
FilesystemReadWriteMany:
|
|
||||||
type: string
|
|
||||||
default: ''
|
|
||||||
FilesystemReadWriteOnce:
|
|
||||||
type: string
|
|
||||||
default: ''
|
|
||||||
organisations:
|
|
||||||
default: []
|
|
||||||
items:
|
|
||||||
type: object
|
|
||||||
properties:
|
|
||||||
name:
|
|
||||||
type: string
|
|
||||||
default: ''
|
|
||||||
datasets:
|
|
||||||
default: []
|
|
||||||
type: array
|
|
||||||
items:
|
|
||||||
type: object
|
|
||||||
properties:
|
|
||||||
name:
|
|
||||||
default: ''
|
|
||||||
type: string
|
|
||||||
engine:
|
|
||||||
default: pg
|
|
||||||
type: string
|
|
||||||
examples:
|
|
||||||
- []
|
|
||||||
type: array
|
|
||||||
images:
|
|
||||||
default:
|
|
||||||
codeserver:
|
|
||||||
registry: docker.io
|
|
||||||
repository: sebt3/code-server
|
|
||||||
tag: 4.15
|
|
||||||
pullPolicy: IfNotPresent
|
|
||||||
properties:
|
|
||||||
codeserver:
|
|
||||||
properties:
|
|
||||||
pullPolicy:
|
|
||||||
enum:
|
|
||||||
- Always
|
|
||||||
- Never
|
|
||||||
- IfNotPresent
|
|
||||||
type: string
|
|
||||||
default: IfNotPresent
|
|
||||||
registry:
|
|
||||||
type: string
|
|
||||||
default: docker.io
|
|
||||||
repository:
|
|
||||||
type: string
|
|
||||||
default: sebt3/code-server
|
|
||||||
tag:
|
|
||||||
type: number
|
|
||||||
default: 4.15
|
|
||||||
type: object
|
|
||||||
default:
|
|
||||||
registry: docker.io
|
|
||||||
repository: sebt3/code-server
|
|
||||||
tag: 4.15
|
|
||||||
pullPolicy: IfNotPresent
|
|
||||||
examples:
|
|
||||||
- codeserver:
|
|
||||||
registry: docker.io
|
|
||||||
repository: sebt3/code-server
|
|
||||||
tag: 4.15
|
|
||||||
pullPolicy: IfNotPresent
|
|
||||||
type: object
|
|
||||||
stations:
|
|
||||||
default: []
|
|
||||||
items:
|
|
||||||
type: object
|
|
||||||
properties:
|
|
||||||
name:
|
|
||||||
type: string
|
|
||||||
default: ''
|
|
||||||
organisations:
|
|
||||||
default: []
|
|
||||||
type: array
|
|
||||||
items:
|
|
||||||
type: string
|
|
||||||
examples:
|
|
||||||
- []
|
|
||||||
type: array
|
|
||||||
ingress-class:
|
|
||||||
default: traefik
|
|
||||||
examples:
|
|
||||||
- traefik
|
|
||||||
type: string
|
|
||||||
dependencies: []
|
dependencies: []
|
||||||
providers:
|
providers:
|
||||||
kubernetes: true
|
kubernetes: true
|
||||||
|
|||||||
@@ -11,9 +11,9 @@ locals {
|
|||||||
// le tableau de toutes les BDs requises dans toutes les devstations (aka de toutes les orga dont la devstation depend) triées par station/orga/ds
|
// le tableau de toutes les BDs requises dans toutes les devstations (aka de toutes les orga dont la devstation depend) triées par station/orga/ds
|
||||||
sorted-datasets = flatten([
|
sorted-datasets = flatten([
|
||||||
for station in local.sorted-stations: flatten([
|
for station in local.sorted-stations: flatten([
|
||||||
for name in distinct(sort(station.organisations)):flatten([
|
for name in distinct(sort(station.organisations)):[
|
||||||
for org in local.sorted-organisations: flatten([
|
for org in local.sorted-organisations: flatten([
|
||||||
for dsname in reverse(distinct(sort([for d in org.datasets: d.name]))): flatten([
|
for dsname in reverse(distinct(sort([for d in org.datasets: d.name]))): [
|
||||||
for ds in org.datasets:
|
for ds in org.datasets:
|
||||||
merge(ds, {
|
merge(ds, {
|
||||||
"name" = "${org.name}-${ds.name}"
|
"name" = "${org.name}-${ds.name}"
|
||||||
@@ -22,9 +22,9 @@ locals {
|
|||||||
"usage" = "station"
|
"usage" = "station"
|
||||||
"station" = station
|
"station" = station
|
||||||
}) if ds.name = dsname
|
}) if ds.name = dsname
|
||||||
])
|
]
|
||||||
]) if org.name == name
|
]) if org.name == name
|
||||||
])
|
]
|
||||||
])
|
])
|
||||||
])
|
])
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user