From ce3f4742aab8dcbb696d7b795598d1a528ea5e2b Mon Sep 17 00:00:00 2001 From: Phil Sphicas Date: Tue, 18 Feb 2020 13:48:45 -0800 Subject: [PATCH] etcd chart: anchor pre_stop remove bashism The anchor pre-stop script uses the 'function' command, which fails when using dash. This change removes it for compatibility. Change-Id: I6591045fa0a555800a03edbdf1f9f3a8476dd0a3 --- charts/etcd/templates/bin/_pre_stop.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/etcd/templates/bin/_pre_stop.tpl b/charts/etcd/templates/bin/_pre_stop.tpl index f455b32d..230be86e 100644 --- a/charts/etcd/templates/bin/_pre_stop.tpl +++ b/charts/etcd/templates/bin/_pre_stop.tpl @@ -15,7 +15,7 @@ set -ex -function cleanup_host { +cleanup_host () { rm -f $MANIFEST_PATH rm -rf /etcd-etc/tls/ {{- if .Values.etcd.cleanup_data }}