From b934548c47236a4962b1dd1730d491016587d89f Mon Sep 17 00:00:00 2001 From: Kirill Kamakin Date: Sat, 23 May 2026 16:15:30 +0200 Subject: [PATCH] Enable container command override --- script/helm/garage/README.md | 2 ++ script/helm/garage/templates/workload.yaml | 8 ++++++++ script/helm/garage/values.yaml | 6 ++++++ 3 files changed, 16 insertions(+) diff --git a/script/helm/garage/README.md b/script/helm/garage/README.md index 1466c6af..d634f2cb 100644 --- a/script/helm/garage/README.md +++ b/script/helm/garage/README.md @@ -15,6 +15,8 @@ S3-compatible object store for small self-hosted geo-distributed deployments | Key | Type | Default | Description | |-----|------|---------|-------------| | affinity | object | `{}` | | +| args | list | `[]` | Override the container arguments. | +| command | list | `[]` | Override the container entrypoint. | | commonLabels | object | `{}` | Extra labels for all resources | | deployment.kind | string | `"StatefulSet"` | Switchable to DaemonSet | | deployment.podManagementPolicy | string | `"OrderedReady"` | If using statefulset, allow Parallel or OrderedReady (default) | diff --git a/script/helm/garage/templates/workload.yaml b/script/helm/garage/templates/workload.yaml index 1283d245..b3771d30 100644 --- a/script/helm/garage/templates/workload.yaml +++ b/script/helm/garage/templates/workload.yaml @@ -59,6 +59,14 @@ spec: {{- toYaml .Values.securityContext | nindent 12 }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" imagePullPolicy: {{ .Values.image.pullPolicy }} + {{- with .Values.command }} + command: + {{- toYaml . | nindent 12 }} + {{- end }} + {{- with .Values.args }} + args: + {{- toYaml . | nindent 12 }} + {{- end }} ports: - containerPort: {{ include "garage.portFromBindAddr" .Values.garage.s3.api.bindAddr | int }} name: s3-api diff --git a/script/helm/garage/values.yaml b/script/helm/garage/values.yaml index de44a34f..759bd7e1 100644 --- a/script/helm/garage/values.yaml +++ b/script/helm/garage/values.yaml @@ -252,6 +252,12 @@ priorityClassName: "" # as a Pod container's env) environment: {} +# -- Override the container entrypoint. +command: [] + +# -- Override the container arguments. +args: [] + # -- Extra volumes, as a list of volume objects (same shape as a PodSpec's volumes) extraVolumes: {}