.
This commit is contained in:
parent
c88a93a1e4
commit
ac671c78da
@ -3,7 +3,7 @@ apiVersion: v2
|
|||||||
description: Helm chart for offlineimap
|
description: Helm chart for offlineimap
|
||||||
name: offlineimap
|
name: offlineimap
|
||||||
type: application
|
type: application
|
||||||
version: 0.0.3
|
version: 0.0.4
|
||||||
kubeVersion: ">=1.16.0-0"
|
kubeVersion: ">=1.16.0-0"
|
||||||
keywords:
|
keywords:
|
||||||
- offlineimap
|
- offlineimap
|
||||||
|
|||||||
@ -24,9 +24,50 @@ spec:
|
|||||||
template:
|
template:
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
{{- include "common.controller.mainContainer" . | nindent 2 }}
|
- name: {{ include "common.names.fullname" . }}
|
||||||
{{- with (include "common.controller.volumes" . | trim) }}
|
image: {{ printf "%s:%s" .Values.image.repository (default .Chart.AppVersion .Values.image.tag) | quote }}
|
||||||
volumes:
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||||
{{- nindent 2 . }}
|
{{- with .Values.env }}
|
||||||
{{- end }}
|
env:
|
||||||
|
{{- range $k, $v := . }}
|
||||||
|
{{- $name := $k }}
|
||||||
|
{{- $value := $v }}
|
||||||
|
{{- if kindIs "int" $name }}
|
||||||
|
{{- $name = required "environment variables as a list of maps require a name field" $value.name }}
|
||||||
|
{{- end }}
|
||||||
|
- name: {{ quote $name }}
|
||||||
|
{{- if kindIs "map" $value -}}
|
||||||
|
{{- if hasKey $value "value" }}
|
||||||
|
{{- $value = $value.value -}}
|
||||||
|
{{- else if hasKey $value "valueFrom" }}
|
||||||
|
{{- toYaml $value | nindent 6 }}
|
||||||
|
{{- else }}
|
||||||
|
{{- dict "valueFrom" $value | toYaml | nindent 6 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if not (kindIs "map" $value) }}
|
||||||
|
{{- if kindIs "string" $value }}
|
||||||
|
{{- $value = tpl $value $ }}
|
||||||
|
{{- end }}
|
||||||
|
value: {{ quote $value }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
envFrom:
|
||||||
|
{{- with .Values.envFrom }}
|
||||||
|
{{- toYaml . | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.secret }}
|
||||||
|
- secretRef:
|
||||||
|
name: {{ include "common.names.fullname" . }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with (include "common.controller.volumeMounts" . | trim) }}
|
||||||
|
volumeMounts:
|
||||||
|
{{- nindent 4 . }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with (include "common.controller.volumes" . | trim) }}
|
||||||
|
volumes:
|
||||||
|
{{- nindent 2 . }}
|
||||||
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user