fix shutdownhook, command vs args, indents

This commit is contained in:
David J. M. Karlsen
2019-12-10 11:52:24 +01:00
parent a79516994d
commit 1f1f69d508
4 changed files with 7 additions and 9 deletions

View File

@@ -40,7 +40,8 @@ spec:
- name: memcached
image: {{ template "memcached.image" . }}
imagePullPolicy: {{ .Values.image.pullPolicy | quote }}
command: {{- toYaml .Values.command | nindent 12 }}
args:
{{ toYaml .Values.arguments | nindent 12 }}
env:
- name: MEMCACHED_USERNAME
value: {{ default "" .Values.memcachedUsername | quote }}

View File

@@ -47,12 +47,11 @@ spec:
{{- end }}
image: {{ template "memcached.image" . }}
imagePullPolicy: {{ .Values.image.pullPolicy | quote }}
command: {{- toYaml .Values.command | nindent 12 }}
args:
{{ toYaml .Values.arguments | indent 12 }}
{{- if .Values.persistence.enabled }}
{{ toYaml .Values.arguments | nindent 12 }}
{{- if .Values.persistence.enabled }}
- -e/cache-state/memory_file
{{- end }}
{{- end }}
env:
- name: MEMCACHED_USERNAME
value: {{ default "" .Values.memcachedUsername | quote }}

View File

@@ -130,8 +130,7 @@ persistence:
## Args for running memcached
## Ref: https://github.com/memcached/memcached/wiki/ConfiguringServer
command:
- memcached
arguments:
# - -m <maxMemoryLimit>
# - -I <maxItemSize>
# - -vv

View File

@@ -130,8 +130,7 @@ persistence:
## Args for running memcached
## Ref: https://github.com/memcached/memcached/wiki/ConfiguringServer
command:
- memcached
arguments:
# - -m <maxMemoryLimit>
# - -I <maxItemSize>
# - -vv