From 7e27e83a7baed38db9e5624b6721cd48ba9ac098 Mon Sep 17 00:00:00 2001 From: Fernando Ripoll <fernando@giantswarm.io> Date: Mon, 28 Oct 2024 12:40:35 +0100 Subject: [PATCH] Update values schema to allow resources in the proxy Fix the error in the resource's properties for authProxy. With current configuration can not be overwritten because of ``` - authProxy.resources: limits is required - authProxy.resources: requests is required ``` --- charts/k6-operator/values.schema.json | 50 ++++++++++++++++++++++++++- 1 file changed, 49 insertions(+), 1 deletion(-) diff --git a/charts/k6-operator/values.schema.json b/charts/k6-operator/values.schema.json index 58e66b42..dd06229d 100644 --- a/charts/k6-operator/values.schema.json +++ b/charts/k6-operator/values.schema.json @@ -73,6 +73,54 @@ }, "resources": { "additionalProperties": false, + "properties": { + "limits": { + "additionalProperties": false, + "properties": { + "cpu": { + "default": "100m", + "description": "authProxy.resources.limits.cpu -- rbac-proxy CPU limit (Max)", + "title": "cpu", + "type": "string" + }, + "memory": { + "default": "100Mi", + "description": "authProxy.resources.limits.memory -- rbac-proxy Memory limit (Max)", + "title": "memory", + "type": "string" + } + }, + "title": "limits", + "type": "object", + "required": [ + "cpu", + "memory" + ] + }, + "requests": { + "additionalProperties": false, + "properties": { + "cpu": { + "default": "100m", + "description": "authProxy.resources.requests.cpu -- rbac-proxy CPU request (Min)", + "title": "cpu", + "type": "string" + }, + "memory": { + "default": "50Mi", + "description": "authProxy.resources.requests.memory -- rbac-proxy Memory request (Min)", + "title": "memory", + "type": "string" + } + }, + "title": "requests", + "type": "object", + "required": [ + "cpu", + "memory" + ] + } + }, "description": "authProxy.resources -- rbac-proxy resource limitation/request", "title": "resources", "type": "object" @@ -360,4 +408,4 @@ "authProxy", "manager" ] -} \ No newline at end of file +}