From dcec7e7f26ab466826fd11b3b8467f0c6d2f273b Mon Sep 17 00:00:00 2001 From: Comte Date: Mon, 9 Sep 2024 16:09:46 +0200 Subject: [PATCH] postgres --- charts/postgresql/Chart.yaml | 2 +- charts/postgresql/values.schema.json | 39 +++++++++++++++++----------- 2 files changed, 25 insertions(+), 16 deletions(-) diff --git a/charts/postgresql/Chart.yaml b/charts/postgresql/Chart.yaml index 06fcb52a..97c9e435 100644 --- a/charts/postgresql/Chart.yaml +++ b/charts/postgresql/Chart.yaml @@ -23,7 +23,7 @@ type: application # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.6.9 +version: 1.0.0 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/postgresql/values.schema.json b/charts/postgresql/values.schema.json index 2edc6d33..8ccbbf4a 100644 --- a/charts/postgresql/values.schema.json +++ b/charts/postgresql/values.schema.json @@ -190,22 +190,31 @@ "type": "object", "properties": { "networkPolicy": { - "type": "object", - "description": "Define access policy to the service", - "properties": { - "enabled": { - "type": "boolean", - "title": "Enable network policy", - "description": "Only pod from the same namespace will be allowed", - "default": true, - "x-form": { - "value": "{{region.defaultNetworkPolicy}}" - }, - "x-onyxia": { - "overwriteDefaultWith": "region.defaultNetworkPolicy" - } + "type": "object", + "description": "Define access policy to the service", + "x-onyxia": { + "overwriteSchemaWith": "network-policy.json" + }, + "properties": { + "enabled": { + "type": "boolean", + "title": "Enable network policy", + "description": "Only pod from the same namespace will be allowed", + "default": false, + "x-onyxia": { + "overwriteDefaultWith": "region.defaultNetworkPolicy" + } + }, + "from": { + "type": "array", + "description": "Array of source allowed to have network access to your service", + "default": [], + "x-onyxia": { + "hidden": true, + "overwriteDefaultWith": "region.from" + } + } } - } } } },