Skip to content

Commit

Permalink
Recreate etcd pod only if version changes (#1043)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakolehm authored Feb 4, 2019
1 parent de20e09 commit 4bc3388
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pharos/scripts/configure-etcd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ etcd_version_matches() {

mkdir -p /etc/kubernetes/manifests
mkdir -p /etc/kubernetes/tmp
if [ ! -e /etc/kubernetes/manifests/pharos-etcd.yaml ] || true; then
if [ ! -e /etc/kubernetes/manifests/pharos-etcd.yaml ] || ! etcd_version_matches; then
mkdir -p /var/lib/etcd
chmod 700 /var/lib/etcd

Expand Down

0 comments on commit 4bc3388

Please sign in to comment.