mirror of
https://github.com/bjw-s-labs/helm-charts.git
synced 2025-07-04 00:47:04 +02:00
* fix(common):: Fix Integer style image tags (fixes #128) * feat(common): Reload pod on secret change (#129) * feat(common): Update code-server to v4.11.0 * fix(common): quote command and args strings (#124) * feat(common): Update gluetun to v3.33.0 --------- Signed-off-by: angelnu <git@angelnu.com> Signed-off-by: Maurits van Mastrigt <maurits@funda.nl> Co-authored-by: Angel Nunez Mencias <github@angelnu.com> Co-authored-by: Maurits <75321636+maurits-funda@users.noreply.github.com>
58 lines
1.6 KiB
Smarty
58 lines
1.6 KiB
Smarty
{{- /* The main container included in the controller */ -}}
|
|
{{- define "bjw-s.common.lib.controller.mainContainer" -}}
|
|
- name: {{ include "bjw-s.common.lib.chart.names.fullname" . }}
|
|
image: {{ include "bjw-s.common.lib.container.image" . }}
|
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
|
{{- with .Values.command }}
|
|
command:
|
|
{{- if kindIs "string" . }}
|
|
- {{ . | quote }}
|
|
{{- else }}
|
|
{{ toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- with .Values.args }}
|
|
args:
|
|
{{- if kindIs "string" . }}
|
|
- {{ . | quote }}
|
|
{{- else }}
|
|
{{ toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- with .Values.securityContext }}
|
|
securityContext:
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
{{- with .Values.lifecycle }}
|
|
lifecycle:
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
{{- with .Values.termination.messagePath }}
|
|
terminationMessagePath: {{ . }}
|
|
{{- end }}
|
|
{{- with .Values.termination.messagePolicy }}
|
|
terminationMessagePolicy: {{ . }}
|
|
{{- end }}
|
|
|
|
{{- with .Values.env }}
|
|
env:
|
|
{{- get (fromYaml (include "bjw-s.common.lib.container.envVars" $)) "env" | toYaml | nindent 4 -}}
|
|
{{- end }}
|
|
{{- with .Values.envFrom }}
|
|
envFrom:
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
{{- with (include "bjw-s.common.lib.container.ports" . | trim) }}
|
|
ports:
|
|
{{- nindent 4 . }}
|
|
{{- end }}
|
|
{{- with (include "bjw-s.common.lib.container.volumeMounts" . | trim) }}
|
|
volumeMounts:
|
|
{{- nindent 4 . }}
|
|
{{- end }}
|
|
{{- include "bjw-s.common.lib.container.probes" . | trim | nindent 2 }}
|
|
{{- with .Values.resources }}
|
|
resources:
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
{{- end -}}
|