mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Merge pull request #91925 from wenjiaswe/etcdHostName
ETCD_NAME in migrate-if-needed.sh should be the same as etcd.manifest
This commit is contained in:
commit
4cc44fbef6
@ -46,7 +46,7 @@ set -o nounset
|
||||
BUNDLED_VERSIONS="3.0.17, 3.1.12, 3.2.24, 3.3.17, 3.4.7"
|
||||
|
||||
# shellcheck disable=SC2039
|
||||
ETCD_NAME="${ETCD_NAME:-etcd-$HOSTNAME}"
|
||||
ETCD_NAME="${ETCD_NAME:-etcd-${ETCD_HOSTNAME:-$(hostname -s)}}"
|
||||
if [ -z "${DATA_DIRECTORY:-}" ]; then
|
||||
echo "DATA_DIRECTORY variable unset - unexpected failure"
|
||||
exit 1
|
||||
|
Loading…
Reference in New Issue
Block a user