From ad42e8f27d9a1d2f1b8b59aef9764b1fdc326e51 Mon Sep 17 00:00:00 2001 From: Julien Bouquillon Date: Mon, 4 Sep 2023 00:47:38 +0200 Subject: [PATCH] fix: json schema fixes --- docs/values.schema.json | 3 ++- .../charts/app/kontinuous.values.schema.json | 13 ++----------- 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/docs/values.schema.json b/docs/values.schema.json index 0e156c03ec..b8c125ee54 100644 --- a/docs/values.schema.json +++ b/docs/values.schema.json @@ -183,7 +183,8 @@ ] }, "~needs": { - "markdownDescription": "Job or deployment dependencies.\n\nThe meta-value `~needs`is used to define dependencies tree between charts and jobs.\n\nYou can target using simple charts or jobs name, or be more specific to avoid collision in more complex cases.\n\nsee [~needs documentation](https://socialgouv.github.io/kontinuous/#https://raw.githubusercontent.com/socialgouv/kontinuous/v1/advanced/build?id=meta-values-plugin-needs)", + "markdownDescription": "The meta-value `~needs`is used to define dependencies tree between charts and jobs.\n\nYou can target using simple charts or jobs name, or be more specific to avoid collision in more complex cases.\n\nsee [~needs documentation](https://socialgouv.github.io/kontinuous/#https://raw.githubusercontent.com/socialgouv/kontinuous/v1/advanced/build?id=meta-values-plugin-needs)", + "title": "Job or deployment dependencies", "type": "array", "items": { "type": "string" diff --git a/plugins/contrib/charts/app/kontinuous.values.schema.json b/plugins/contrib/charts/app/kontinuous.values.schema.json index 760efcc819..eeba5f42ec 100644 --- a/plugins/contrib/charts/app/kontinuous.values.schema.json +++ b/plugins/contrib/charts/app/kontinuous.values.schema.json @@ -9,22 +9,13 @@ "^\\.": { "type": ["string", "number", "boolean"] } }, "properties": { - "~chart": { - "type": "string" - }, + "~chart": {}, "~forceRestart": { "description": "Force restart on every deployment. default true", "type": "boolean", "default": true }, - "~needs": { - "description": "Job or deployment dependencies", - "type": "array", - "items": { - "type": "string" - }, - "examples": ["[build-app]"] - }, + "~needs": {}, "image": { "description": "Full path to docker image", "examples": ["ghcr.io/socialgouv/docker/nginx:7.0.1"],