From d3eb5e34d3467e3710d8d4e7e7c4f210237086aa Mon Sep 17 00:00:00 2001 From: Aleksandr Beshkenadze Date: Thu, 28 Jul 2022 14:07:04 +0200 Subject: [PATCH] Allow to extend the container spec. --- charts/stable/common/templates/lib/controller/_container.tpl | 2 +- charts/stable/common/templates/lib/controller/_extraspec.tpl | 5 +++++ charts/stable/common/values.yaml | 2 ++ 3 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 charts/stable/common/templates/lib/controller/_extraspec.tpl diff --git a/charts/stable/common/templates/lib/controller/_container.tpl b/charts/stable/common/templates/lib/controller/_container.tpl index 300cdeb6..e79c8db7 100644 --- a/charts/stable/common/templates/lib/controller/_container.tpl +++ b/charts/stable/common/templates/lib/controller/_container.tpl @@ -76,7 +76,7 @@ volumeMounts: {{- nindent 4 . }} {{- end }} - {{- include "common.controller.probes" . | trim | nindent 2 }} + {{- include "common.controller.extraspec" . | trim | nindent 2 }} {{- with .Values.resources }} resources: {{- toYaml . | nindent 4 }} diff --git a/charts/stable/common/templates/lib/controller/_extraspec.tpl b/charts/stable/common/templates/lib/controller/_extraspec.tpl new file mode 100644 index 00000000..01ff71f2 --- /dev/null +++ b/charts/stable/common/templates/lib/controller/_extraspec.tpl @@ -0,0 +1,5 @@ +{{- define "common.controller.extraspec" -}} +{{- with .Values.extraSpec }} +{{- toYaml . | nindent 2 }} +{{- end }} +{{- end -}} \ No newline at end of file diff --git a/charts/stable/common/values.yaml b/charts/stable/common/values.yaml index ee2261b9..23c3c81e 100644 --- a/charts/stable/common/values.yaml +++ b/charts/stable/common/values.yaml @@ -37,6 +37,8 @@ controller: # -- Set statefulset podManagementPolicy, valid values are Parallel and OrderedReady (default). podManagementPolicy: +extraSpec: {} + image: # -- image repository repository: