From eaca6b70c13591d1709a7679c9c92d21dc0f5f1f Mon Sep 17 00:00:00 2001 From: Dev Jadeja Date: Thu, 16 Jan 2025 17:27:32 +0530 Subject: [PATCH] feature: capability to add a `cmd` in main deployment created by chart --- charts/py-app/templates/deployment.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/charts/py-app/templates/deployment.yaml b/charts/py-app/templates/deployment.yaml index 2c6b3ee..0dc0746 100644 --- a/charts/py-app/templates/deployment.yaml +++ b/charts/py-app/templates/deployment.yaml @@ -35,6 +35,9 @@ spec: containers: - name: {{ .Chart.Name }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" + {{- if .Values.command }} + cmd: {{ .Values.command }} + {{- end}} imagePullPolicy: {{ .Values.image.pullPolicy }} ports: - name: http