Skip to content

Commit

Permalink
fix(jsonschema): add pg chart schema
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Bouquillon committed Aug 30, 2023
1 parent 641e015 commit 03d436f
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docs/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,19 @@
"$ref": "https://raw.githubusercontent.com/socialgouv/kontinuous/v1/plugins/contrib/charts/app/kontinuous.values.schema.json#"
}
},
{
"if": {
"required": ["~chart"],
"properties": {
"~chart": {
"const": "pg"
}
}
},
"then": {
"$ref": "https://raw.githubusercontent.com/socialgouv/kontinuous/v1/plugins/fabrique/charts/pg/kontinuous.values.schema.json#"
}
},
{
"if": {
"required": ["~chart"],
Expand Down
26 changes: 26 additions & 0 deletions plugins/fabrique/charts/pg/kontinuous.values.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [],
"properties": {
"cnpg-cluster": {
"$ref": "https://raw.githubusercontent.com/SocialGouv/helm-charts/charts/cnpg-cluster/values.schema.json"
},
"backup": {
"type": "object",
"required": [],
"properties": {
"enabled": {
"type": "boolean",
"description": "Enable database backups. \\n\\nEnabled by default on preprod and prod environments",
"default": "false"
},
"name": {
"type": "string",
"description": "to override the backup destination path (in case we need a new destination for a new cluster)",
"default": ""
}
}
}
}
}

0 comments on commit 03d436f

Please sign in to comment.