Skip to content

Commit

Permalink
Allow to extend the container spec.
Browse files Browse the repository at this point in the history
  • Loading branch information
beshkenadze committed Jul 28, 2022
1 parent 2a1c2ad commit d3eb5e3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
5 changes: 5 additions & 0 deletions charts/stable/common/templates/lib/controller/_extraspec.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{{- define "common.controller.extraspec" -}}
{{- with .Values.extraSpec }}
{{- toYaml . | nindent 2 }}
{{- end }}
{{- end -}}
2 changes: 2 additions & 0 deletions charts/stable/common/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ controller:
# -- Set statefulset podManagementPolicy, valid values are Parallel and OrderedReady (default).
podManagementPolicy:

extraSpec: {}

image:
# -- image repository
repository:
Expand Down

0 comments on commit d3eb5e3

Please sign in to comment.