From 3c04d5b7d8d2aeeca4fe8f78a27183aadd70213e Mon Sep 17 00:00:00 2001 From: lucasjo Date: Thu, 4 Apr 2024 21:52:09 +0900 Subject: [PATCH] allowed command and args --- charts/base-library-chart/Chart.yaml | 2 +- charts/base-library-chart/templates/deployment.yaml | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/charts/base-library-chart/Chart.yaml b/charts/base-library-chart/Chart.yaml index e0ef282..cc62f20 100644 --- a/charts/base-library-chart/Chart.yaml +++ b/charts/base-library-chart/Chart.yaml @@ -3,4 +3,4 @@ appVersion: 0.1.0 description: A base library Helm chart for Kubernetes application name: base-library-chart type: library -version: 0.1.2 +version: 0.1.3 diff --git a/charts/base-library-chart/templates/deployment.yaml b/charts/base-library-chart/templates/deployment.yaml index 0e78fb4..be5e041 100644 --- a/charts/base-library-chart/templates/deployment.yaml +++ b/charts/base-library-chart/templates/deployment.yaml @@ -38,6 +38,12 @@ spec: {{- toYaml .Values.securityContext | nindent 12 }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" imagePullPolicy: {{ .Values.image.pullPolicy }} + {{- if .Values.container.command }} + command: {{ .Values.container.command }} + {{- end }} + {{- if .Values.container.args }} + args: {{ .Values.container.args }} + {{- end }} ports: - name: http containerPort: {{ .Values.containerPort }}