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..e93009f 100644 --- a/charts/sourcebot/values.schema.json +++ b/charts/sourcebot/values.schema.json @@ -36,6 +36,26 @@ "type": "integer", "minimum": 1 }, + "strategy": { + "type": "object", + "oneOf": [ + { + "additionalProperties": false, + "properties": { + "type": { "type": "string", "const": "RollingUpdate" }, + "rollingUpdate": { "type": "object" } + }, + "required": ["type"] + }, + { + "additionalProperties": false, + "properties": { + "type": { "type": "string", "const": "Recreate" } + }, + "required": ["type"] + } + ] + }, "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