From 45b6282a155bb02015a2715fbad78ba82764f734 Mon Sep 17 00:00:00 2001 From: Mike K <2726746+mr-onion-2@users.noreply.github.com> Date: Thu, 26 Nov 2020 13:11:01 +0000 Subject: [PATCH] [common] Add args option to mainContainer (#253) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs <6213398+bjw-s@users.noreply.github.com> --- charts/common/Chart.yaml | 2 +- charts/common/templates/lib/controller/_container.tpl | 3 +++ charts/common/values.yaml | 3 +++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/charts/common/Chart.yaml b/charts/common/Chart.yaml index 425ceb70..e1a2a31c 100644 --- a/charts/common/Chart.yaml +++ b/charts/common/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: common description: Function library for k8s-at-home charts type: library -version: 1.6.2 +version: 1.7.0 keywords: - k8s-at-home - common diff --git a/charts/common/templates/lib/controller/_container.tpl b/charts/common/templates/lib/controller/_container.tpl index 1f8bdaa9..4fbc9ceb 100644 --- a/charts/common/templates/lib/controller/_container.tpl +++ b/charts/common/templates/lib/controller/_container.tpl @@ -5,6 +5,9 @@ The main container included in the controller. - name: {{ include "common.names.fullname" . }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" imagePullPolicy: {{ .Values.image.pullPolicy }} + {{- with .Values.args }} + args: {{ . }} + {{- end }} {{- with .Values.securityContext }} securityContext: {{- toYaml . | nindent 4 }} diff --git a/charts/common/values.yaml b/charts/common/values.yaml index 4afa1e14..d2bf1408 100644 --- a/charts/common/values.yaml +++ b/charts/common/values.yaml @@ -12,6 +12,9 @@ strategy: ## DaemonSets ignore this type: RollingUpdate +# Override the default args +args: [] + # Set annotations on the pod podAnnotations: {}