From d4ba0e2906f1bb35b5102583838a48b4dfb7e93f Mon Sep 17 00:00:00 2001 From: Matthias Baur Date: Thu, 16 Oct 2025 15:12:50 +0200 Subject: [PATCH] Switch duration schema format to matching pattern Helm 3.18.0 introduce support for JSON Schema 2020. Seems like this is now the only schema validation version that's supported/matched against. To satisfy everyone, let's switch from type:duration to pattern for time validation. Fixes #95 --- deploy/k8s/chart/values.schema.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/deploy/k8s/chart/values.schema.json b/deploy/k8s/chart/values.schema.json index cb0f059..ef0735b 100644 --- a/deploy/k8s/chart/values.schema.json +++ b/deploy/k8s/chart/values.schema.json @@ -193,19 +193,19 @@ "type": "string", "title": "Timeout", "description": "HTTP request timeout", - "format": "duration" + "pattern": "^[0-9]+[smhd]$" }, "idle_timeout": { "type": "string", "title": "Idle_Timeout", "description": "HTTP request idle timeout", - "format": "duration" + "pattern": "^[0-9]+[smhd]$" }, "timeout_shutdown": { "type": "string", "title": "Shutdown timeout", "description": "Timeout to wait on shutdown to allow load balancers detect that we're going away", - "format": "duration" + "pattern": "^[0-9]+[smhd]$" }, "concurrency": { "type": "integer", @@ -227,7 +227,7 @@ "type": "string", "title": "Max Connection Duration", "description": "Maximum duration to keep outgoing connections alive (to Cortex/Mimir)", - "format": "duration" + "pattern": "^[0-9]+[smhd]$" }, "max_conns_per_host": { "type": "integer", @@ -497,7 +497,7 @@ ], "title": "Interval", "description": "ServiceMonitor scrape interval", - "format": "duration" + "pattern": "^[0-9]+[smhd]$" }, "scrapeTimeout": { "type": [ @@ -506,7 +506,7 @@ ], "title": "Scrape Timeout", "description": "ServiceMonitor scrape timeout in Go duration format (e.g. 15s)", - "format": "duration" + "pattern": "^[0-9]+[smhd]$" }, "relabelings": { "type": "array",