From 4a250609bd1cd7241eb1d99374508917bf20f178 Mon Sep 17 00:00:00 2001 From: Dominic DePasquale <7384087+domdepasquale@users.noreply.github.com> Date: Wed, 12 Jun 2024 16:25:45 -0400 Subject: [PATCH] app extra config (#80) * app: support command override * bump chart --- charts/application-core/Chart.yaml | 2 +- charts/application-core/templates/deployment.yaml | 6 ++++++ charts/application-core/values.yaml | 2 ++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/charts/application-core/Chart.yaml b/charts/application-core/Chart.yaml index 66adc26..13766a7 100644 --- a/charts/application-core/Chart.yaml +++ b/charts/application-core/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 4.0.1 +version: 4.1.0 maintainers: - name: Dominic DePasquale diff --git a/charts/application-core/templates/deployment.yaml b/charts/application-core/templates/deployment.yaml index 294c859..3ea404f 100644 --- a/charts/application-core/templates/deployment.yaml +++ b/charts/application-core/templates/deployment.yaml @@ -97,6 +97,12 @@ spec: {{- toYaml .Values.securityContext | nindent 12 }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" imagePullPolicy: {{ .Values.image.pullPolicy }} + {{- if .Values.command }} + command: + {{- range .Values.command }} + - {{ . }} + {{- end }} + {{- end }} ports: - name: http containerPort: {{ .Values.service.port }} diff --git a/charts/application-core/values.yaml b/charts/application-core/values.yaml index 32fc136..8d385cf 100644 --- a/charts/application-core/values.yaml +++ b/charts/application-core/values.yaml @@ -97,6 +97,8 @@ configMap: enabled: false data: {} +command: [] + env: [] # - name: FOO