diff --git a/docs/values.schema.json b/docs/values.schema.json index da78b24d54..52f078004c 100644 --- a/docs/values.schema.json +++ b/docs/values.schema.json @@ -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"], diff --git a/plugins/fabrique/charts/pg/kontinuous.values.schema.json b/plugins/fabrique/charts/pg/kontinuous.values.schema.json new file mode 100644 index 0000000000..f432403ccd --- /dev/null +++ b/plugins/fabrique/charts/pg/kontinuous.values.schema.json @@ -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": "" + } + } + } + } +}