From 8708c0f8c4c756deed141358104d782753def46c Mon Sep 17 00:00:00 2001 From: KateTretiak <92021119+KateTretiak@users.noreply.github.com> Date: Wed, 15 Jan 2025 14:38:11 +0200 Subject: [PATCH] update schema --- client/schemas/blueprint-spec2-schema.json | 45 ++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/client/schemas/blueprint-spec2-schema.json b/client/schemas/blueprint-spec2-schema.json index da3ff62..c409bbf 100644 --- a/client/schemas/blueprint-spec2-schema.json +++ b/client/schemas/blueprint-spec2-schema.json @@ -180,6 +180,9 @@ "terragrunt" ] }, + "env-labels": { + "$ref": "#/definitions/GrainLabels" + }, "spec": { "$ref": "#/definitions/GrainSpecObject" }, @@ -210,6 +213,9 @@ "post-tf-plan": { "$ref": "#/definitions/ScriptObject" }, + "pre-ansible-run": { + "$ref": "#/definitions/ScriptOutputsObject" + }, "post-helm-install": { "$ref": "#/definitions/ScriptOutputsObject" }, @@ -635,6 +641,45 @@ } } }, + "GrainLabels": { + "type": "object", + "additionalProperties": false, + "properties": { + "on-success": { + "type":"array", + "items": { + "allOf": [ + { + "$ref": "#/definitions/EnvironmentLabel" + } + ] + } + }, + "on-failure": { + "type":"array", + "items": { + "allOf": [ + { + "$ref": "#/definitions/EnvironmentLabel" + } + ] + } + } + } + }, + "EnvironmentLabel": { + "type": "object", + "additionalProperties": false, + "patternProperties": { + "^[\\w\\-\\.]+$": { + "type": [ + "string", + "number", + "boolean" + ] + } + } + }, "PodLabels": { "type": "object", "additionalProperties": true