[bitnami/etcd] Ensure ETCD_DATA_DIR permissions are set to 700 (#3196)

* [bitnami/etcd] Ensure ETCD_DATA_DIR permissions are set to 700

* Move check permissions block when previous data is detected

* Remove blank line

* [bitnami/etcd] Update components versions

Signed-off-by: Bitnami Containers <containers@bitnami.com>

Co-authored-by: Bitnami Containers <containers@bitnami.com>
This commit is contained in:
Carlos Rodríguez Hernández
2020-07-23 18:49:15 +02:00
committed by GitHub
co-authored by Bitnami Containers
parent 8b11fcee8d
commit b331fa6b61
4 changed files with 10 additions and 4 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
apiVersion: v1
name: etcd
version: 4.8.14
appVersion: 3.4.9
version: 4.9.0
appVersion: 3.4.10
description: etcd is a distributed key value store that provides a reliable way to store data across a cluster of machines
keywords:
- etcd
@@ -144,6 +144,12 @@ data:
{{- end }}
else
echo "==> Detected data from previous deployments..." 1>&3 2>&4
if [[ $(stat -c "%a" "$ETCD_DATA_DIR") != *700 ]]; then
echo "==> Setting data directory permissions to 700 in a recursive way (required in etcd >=3.4.10)" 1>&3 2>&4
chmod -R 700 $ETCD_DATA_DIR
else
echo "==> The data directory is already configured with the proper permissions" 1>&3 2>&4
fi
if [[ {{ $replicaCount }} -eq 1 ]]; then
echo "==> Single node cluster detected!!" 1>&3 2>&4
elif is_disastrous_failure; then
+1 -1
View File
@@ -14,7 +14,7 @@
image:
registry: docker.io
repository: bitnami/etcd
tag: 3.4.9-debian-10-r53
tag: 3.4.10-debian-10-r1
## Specify a imagePullPolicy
## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images
+1 -1
View File
@@ -14,7 +14,7 @@
image:
registry: docker.io
repository: bitnami/etcd
tag: 3.4.9-debian-10-r53
tag: 3.4.10-debian-10-r1
## Specify a imagePullPolicy
## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images