Skip to content

Commit 4cc44fb

Browse files
authored
Merge pull request kubernetes#91925 from wenjiaswe/etcdHostName
ETCD_NAME in migrate-if-needed.sh should be the same as etcd.manifest
2 parents b731b2e + d162e09 commit 4cc44fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cluster/images/etcd/migrate-if-needed.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ set -o nounset
4646
BUNDLED_VERSIONS="3.0.17, 3.1.12, 3.2.24, 3.3.17, 3.4.7"
4747

4848
# shellcheck disable=SC2039
49-
ETCD_NAME="${ETCD_NAME:-etcd-$HOSTNAME}"
49+
ETCD_NAME="${ETCD_NAME:-etcd-${ETCD_HOSTNAME:-$(hostname -s)}}"
5050
if [ -z "${DATA_DIRECTORY:-}" ]; then
5151
echo "DATA_DIRECTORY variable unset - unexpected failure"
5252
exit 1

0 commit comments

Comments
 (0)