mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-09 05:01:46 +00:00
Make hack/install-etcd.sh use hack/lib/etcd.sh
This commit is contained in:
@@ -14,15 +14,14 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
# Convenience script to download and install etcd in third_party.
|
||||
# Mostly just used by CI.
|
||||
|
||||
set -o errexit
|
||||
set -o nounset
|
||||
set -o pipefail
|
||||
|
||||
KUBE_ROOT=$(dirname "${BASH_SOURCE}")/..
|
||||
source "${KUBE_ROOT}/hack/lib/init.sh"
|
||||
|
||||
ETCD_VERSION=${ETCD_VERSION:-v2.2.1}
|
||||
|
||||
cd "${KUBE_ROOT}/third_party"
|
||||
curl -fsSL https://github.com/coreos/etcd/releases/download/${ETCD_VERSION}/etcd-${ETCD_VERSION}-linux-amd64.tar.gz \
|
||||
| tar xzf -
|
||||
ln -fns etcd-${ETCD_VERSION}-linux-amd64 etcd
|
||||
kube::etcd::install
|
||||
|
Reference in New Issue
Block a user