From 83d9d47141929a8fc840167c2f6da159820d6cff Mon Sep 17 00:00:00 2001 From: Vladyslav Riabyk Date: Thu, 6 Apr 2023 17:35:07 +0300 Subject: [PATCH] adding ability to change command --- charts/benji/templates/maint-deployment.yaml | 4 ++++ charts/benji/values.yaml | 3 +++ 2 files changed, 7 insertions(+) diff --git a/charts/benji/templates/maint-deployment.yaml b/charts/benji/templates/maint-deployment.yaml index 2e8692a8..62e92056 100644 --- a/charts/benji/templates/maint-deployment.yaml +++ b/charts/benji/templates/maint-deployment.yaml @@ -35,6 +35,10 @@ spec: - name: benji image: "{{ .Values.benji.image.registry }}/{{ .Values.benji.image.repository }}:{{ .Values.benji.image.tag }}" imagePullPolicy: {{ .Values.benji.image.pullPolicy }} +{{- with .Values.benji.command }} + command: + {{- toYaml . | nindent 12 }} +{{- end }} securityContext: privileged: true env: diff --git a/charts/benji/values.yaml b/charts/benji/values.yaml index 13282460..671af5f3 100644 --- a/charts/benji/values.yaml +++ b/charts/benji/values.yaml @@ -18,6 +18,9 @@ benji: affinity: {} initContainers: [] + + command: [] + ## insert a secret name here that contains your configuration, otherwise the below configuration is used externalSecretConfig: ""