From 32b791450b0872d4ca3cec72189a852184acf32b Mon Sep 17 00:00:00 2001 From: kiblik <5609770+kiblik@users.noreply.github.com> Date: Fri, 20 Nov 2026 16:50:29 +0000 Subject: [PATCH] fix(helm): pdb.minAvailable can be number as well --- helm/defectdojo/Chart.yaml | 4 +++- helm/defectdojo/values.schema.json | 10 ++++++++-- helm/defectdojo/values.yaml | 2 ++ 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/helm/defectdojo/Chart.yaml b/helm/defectdojo/Chart.yaml index 1c6a1152659..0b214b64d7b 100644 --- a/helm/defectdojo/Chart.yaml +++ b/helm/defectdojo/Chart.yaml @@ -34,4 +34,6 @@ dependencies: # description: Critical bug annotations: artifacthub.io/prerelease: "true" - artifacthub.io/changes: "" + artifacthub.io/changes: | + - kind: changed + description: Enable to set pdb.minAvailable to number diff --git a/helm/defectdojo/values.schema.json b/helm/defectdojo/values.schema.json index 54120f850bf..aebfc09452d 100644 --- a/helm/defectdojo/values.schema.json +++ b/helm/defectdojo/values.schema.json @@ -259,7 +259,10 @@ "type": "boolean" }, "minAvailable": { - "type": "string" + "type": [ + "string", + "number" + ] }, "unhealthyPodEvictionPolicy": { "type": "string" @@ -665,7 +668,10 @@ "type": "boolean" }, "minAvailable": { - "type": "string" + "type": [ + "string", + "number" + ] }, "unhealthyPodEvictionPolicy": { "type": "string" diff --git a/helm/defectdojo/values.yaml b/helm/defectdojo/values.yaml index 29f8f900db5..8826236e7d0 100644 --- a/helm/defectdojo/values.yaml +++ b/helm/defectdojo/values.yaml @@ -315,6 +315,7 @@ celery: # -- Configure pod disruption budgets for Celery worker ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb/#specifying-a-poddisruptionbudget podDisruptionBudget: enabled: false + # @schema type:[string, number] minAvailable: 50% unhealthyPodEvictionPolicy: AlwaysAllow # -- Pod security context for the Celery worker pods. @@ -407,6 +408,7 @@ django: # -- Configure pod disruption budgets for django ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb/#specifying-a-poddisruptionbudget podDisruptionBudget: enabled: false + # @schema type:[string, number] minAvailable: 50% unhealthyPodEvictionPolicy: AlwaysAllow replicas: 1