From 3cdbb59c1143b3f29d985fea8b53ac1b889f5135 Mon Sep 17 00:00:00 2001 From: Alexander Chernov Date: Sun, 29 Mar 2026 12:54:24 +0100 Subject: [PATCH 1/2] chore: update sourcebot version to 0.1.67 and add deployment strategy configuration Signed-off-by: Alexander Chernov --- charts/sourcebot/Chart.yaml | 2 +- charts/sourcebot/templates/deployment.yaml | 4 ++++ charts/sourcebot/values.schema.json | 12 ++++++++++++ charts/sourcebot/values.yaml | 6 +++++- 4 files changed, 22 insertions(+), 2 deletions(-) diff --git a/charts/sourcebot/Chart.yaml b/charts/sourcebot/Chart.yaml index b0194b7..8fdb510 100644 --- a/charts/sourcebot/Chart.yaml +++ b/charts/sourcebot/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 type: application name: sourcebot -version: 0.1.66 +version: 0.1.67 appVersion: v4.16.3 description: Sourcebot is a self-hosted tool that helps you understand your codebase. icon: https://raw.githubusercontent.com/sourcebot-dev/sourcebot/ebf6721836b8f878d42bb8c1e844bdc7867a74fe/packages/web/public/logo_512.png diff --git a/charts/sourcebot/templates/deployment.yaml b/charts/sourcebot/templates/deployment.yaml index 3598c67..6e5c00b 100644 --- a/charts/sourcebot/templates/deployment.yaml +++ b/charts/sourcebot/templates/deployment.yaml @@ -8,6 +8,10 @@ metadata: {{- include "sourcebot.labels" $ | nindent 4 }} spec: replicas: {{ $.Values.sourcebot.replicaCount }} + {{- with $.Values.sourcebot.strategy }} + strategy: + {{- toYaml . | nindent 4 }} + {{- end }} selector: matchLabels: {{- include "sourcebot.selectorLabels" $ | nindent 6 }} diff --git a/charts/sourcebot/values.schema.json b/charts/sourcebot/values.schema.json index 7a9232a..ce7fed7 100644 --- a/charts/sourcebot/values.schema.json +++ b/charts/sourcebot/values.schema.json @@ -36,6 +36,18 @@ "type": "integer", "minimum": 1 }, + "strategy": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": ["RollingUpdate", "Recreate"] + }, + "rollingUpdate": { + "type": "object" + } + } + }, "image": { "type": "object", "properties": { diff --git a/charts/sourcebot/values.yaml b/charts/sourcebot/values.yaml index 031e8cb..fa1d046 100644 --- a/charts/sourcebot/values.yaml +++ b/charts/sourcebot/values.yaml @@ -4,7 +4,7 @@ global: security: # -- Allow insecure images to use bitnami legacy repository. Can be set to false if secure images are being used (Paid). allowInsecureImages: true - + # -- Global Docker registry secret names as an array imagePullSecrets: [] @@ -19,6 +19,10 @@ sourcebot: # -- Set the number of replicas for the deployment replicaCount: 1 + # -- Deployment strategy configuration + strategy: + type: RollingUpdate + # Image configuration image: # -- Container image repository From 2d3e1a932eb096371cc3e331a5caf7f6dc62fce1 Mon Sep 17 00:00:00 2001 From: Alexander Chernov Date: Sun, 29 Mar 2026 13:06:57 +0100 Subject: [PATCH 2/2] Further hardening of values.schema.json --- charts/sourcebot/values.schema.json | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/charts/sourcebot/values.schema.json b/charts/sourcebot/values.schema.json index ce7fed7..e93009f 100644 --- a/charts/sourcebot/values.schema.json +++ b/charts/sourcebot/values.schema.json @@ -38,15 +38,23 @@ }, "strategy": { "type": "object", - "properties": { - "type": { - "type": "string", - "enum": ["RollingUpdate", "Recreate"] + "oneOf": [ + { + "additionalProperties": false, + "properties": { + "type": { "type": "string", "const": "RollingUpdate" }, + "rollingUpdate": { "type": "object" } + }, + "required": ["type"] }, - "rollingUpdate": { - "type": "object" + { + "additionalProperties": false, + "properties": { + "type": { "type": "string", "const": "Recreate" } + }, + "required": ["type"] } - } + ] }, "image": { "type": "object",