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
This commit is contained in:
Huy Tran 2021-04-06 19:18:20 -05:00
parent dbb20c786d
commit c60c138777
4 changed files with 7 additions and 1 deletions

View File

@ -15,6 +15,6 @@ apiVersion: v1
appVersion: v1.5.5
description: OpenStack-Helm Memcached
name: memcached
version: 0.1.1
version: 0.1.2
home: https://github.com/memcached/memcached
...

View File

@ -20,5 +20,8 @@ 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}

View File

@ -22,6 +22,8 @@ conf:
# NOTE(pordirect): this should match the value in
# `pod.resources.memcached.memory`
memory: 1024
stats_cachedump:
enabled: true
dependencies:
dynamic:

View File

@ -2,4 +2,5 @@
memcached:
- 0.1.0 Initial Chart
- 0.1.1 Change helm-toolkit dependency version to ">= 0.1.0"
- 0.1.2 Make stats cachedump configurable.
...