From f36f228d3d11c8120f8d6177975e612e281a66b5 Mon Sep 17 00:00:00 2001 From: Vyshakh P Date: Thu, 17 Feb 2022 18:34:43 +0530 Subject: [PATCH 1/2] run args support --- values.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/values.yaml b/values.yaml index 95e3c75..a08a807 100644 --- a/values.yaml +++ b/values.yaml @@ -10,6 +10,10 @@ image: pullPolicy: IfNotPresent # Overrides the image tag whose default is the chart appVersion. # tag: "v1" + +entrypoint: {} + # command: ["test2"] + # args: ["test"] imagePullSecrets: [] From a89ba4b61d556429957273268354cf37aec6b9ef Mon Sep 17 00:00:00 2001 From: Vyshakh P Date: Thu, 17 Feb 2022 18:35:43 +0530 Subject: [PATCH 2/2] support for run args --- templates/deployment.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/templates/deployment.yaml b/templates/deployment.yaml index 3123106..cfba23b 100644 --- a/templates/deployment.yaml +++ b/templates/deployment.yaml @@ -35,6 +35,14 @@ spec: {{- toYaml .Values.securityContext | nindent 12 }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" imagePullPolicy: {{ .Values.image.pullPolicy }} + {{- if .Values.entrypoint.command }} + command: + {{- toYaml .Values.entrypoint.command | nindent 10 }} + {{- end }} + {{- if .Values.entrypoint.args }} + args: + {{- toYaml .Values.entrypoint.args | nindent 10 }} + {{- end }} env: {{- if .Values.service.port }} - name: {{ cat $envPrefix "PORT_" $portName | nospace |upper}}