From fe3b412dcc58f8a3c367af3e42384c2f4dee99b2 Mon Sep 17 00:00:00 2001 From: Vessel9817 <151808241+Vessel9817@users.noreply.github.com> Date: Thu, 16 Jul 2026 22:44:23 -0400 Subject: [PATCH 1/2] Migrated to draft-07 Signed-off-by: Vessel9817 <151808241+Vessel9817@users.noreply.github.com> --- src/schemas/json/kustomization.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/schemas/json/kustomization.json b/src/schemas/json/kustomization.json index dc6656b6722..4f059a2bed4 100644 --- a/src/schemas/json/kustomization.json +++ b/src/schemas/json/kustomization.json @@ -1,5 +1,6 @@ { - "$schema": "http://json-schema.org/draft-04/schema#", + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://json.schemastore.org/kustomization.json", "$ref": "#/definitions/Kustomization", "definitions": { "ConfigMapArgs": { @@ -977,6 +978,5 @@ "additionalProperties": false, "type": "object" } - }, - "id": "https://json.schemastore.org/kustomization.json" + } } From 52f3b03dd0b9499180767e1d8a8014b5610a35c9 Mon Sep 17 00:00:00 2001 From: Vessel9817 <151808241+Vessel9817@users.noreply.github.com> Date: Thu, 16 Jul 2026 22:49:22 -0400 Subject: [PATCH 2/2] Enabled strict validation Signed-off-by: Vessel9817 <151808241+Vessel9817@users.noreply.github.com> --- src/schema-validation.jsonc | 1 - src/schemas/json/kustomization.json | 8 ++++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/schema-validation.jsonc b/src/schema-validation.jsonc index cb1b30437e6..845dae5baf0 100644 --- a/src/schema-validation.jsonc +++ b/src/schema-validation.jsonc @@ -177,7 +177,6 @@ "kestra-0.18.3.json", "kestra-0.19.0.json", "kong_json_schema.json", - "kustomization.json", "label-commenter-config.json", "launchsettings.json", "lerna.json", diff --git a/src/schemas/json/kustomization.json b/src/schemas/json/kustomization.json index 4f059a2bed4..344005c8efe 100644 --- a/src/schemas/json/kustomization.json +++ b/src/schemas/json/kustomization.json @@ -142,6 +142,7 @@ "type": "object", "patternProperties": { ".*": { + "type": "object", "additionalProperties": true } } @@ -445,7 +446,7 @@ { "properties": { "order": { - "enum": ["legacy"] + "const": "legacy" }, "legacySortOptions": { "properties": { @@ -466,7 +467,7 @@ { "properties": { "order": { - "enum": ["fifo"] + "const": "fifo" } }, "additionalProperties": false, @@ -502,6 +503,7 @@ "Labels": { "properties": { "pairs": { + "type": "object", "description": "Pairs contains the key-value pairs for labels to add", "patternProperties": { ".*": { @@ -683,6 +685,7 @@ "description": "Refers to a Kubernetes object that the patch will be applied to. It must refer to a Kubernetes resource under the purview of this kustomization" } }, + "type": "object", "additionalProperties": false }, "PatchesInlinePatch": { @@ -699,6 +702,7 @@ "description": "Refers to a Kubernetes object that the patch will be applied to. It must refer to a Kubernetes resource under the purview of this kustomization" } }, + "type": "object", "additionalProperties": false }, "ReplacementsInline": {