openstack-helm-infra/memcached/templates/bin/_memcached.sh.tpl
Huy Tran c60c138777 Enhancements to make stats cachedump configurable
Memcached stats cachedump is enabled by default. Changes in this
pathset provide an option to configure stats cachedump as desired
during deployment i.e. the stats cachedump can be disabled to
prevent user obtaining sensitive info via the cachedump data.

Change-Id: Ic6254f89b1478a414ac275436ddd659b16b75f98
2021-04-14 22:52:18 +00:00

28 lines
769 B
Smarty

#!/bin/sh
{{/*
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/}}
set -ex
memcached --version
exec memcached -v \
-p ${MEMCACHED_PORT} \
-U 0 \
{{- if not .Values.conf.memcached.stats_cachedump.enabled }}
-X \
{{- end }}
-c ${MEMCACHED_MAX_CONNECTIONS} \
-m ${MEMCACHED_MEMORY}