Fixup etcdctl download for etcd kubeadm mode (#4991)

Change-Id: I8d8e59a97823390f40e8810905ca52430329f040
This commit is contained in:
Matthew Mosesohn 2019-07-21 10:08:53 +03:00 committed by Kubernetes Prow Robot
parent 428e52e0d1
commit 1cbdd7ed5c

View file

@ -314,13 +314,15 @@ downloads:
etcd: etcd:
container: "{{ etcd_deployment_type != 'host' }}" container: "{{ etcd_deployment_type != 'host' }}"
file: "{{ etcd_deployment_type == 'host' }}" file: "{{ etcd_deployment_type == 'host' or etcd_kubeadm_enabled }}"
enabled: true enabled: true
version: "{{ etcd_version }}" version: "{{ etcd_version }}"
dest: "{{local_release_dir}}/etcd-{{ etcd_version }}-linux-amd64.tar.gz" dest: "{{local_release_dir}}/etcd-{{ etcd_version }}-linux-amd64.tar.gz"
repo: "{{ etcd_image_repo }}" repo: "{{ etcd_image_repo }}"
tag: "{{ etcd_image_tag }}" tag: "{{ etcd_image_tag }}"
sha256: "{{ etcd_binary_checksum if etcd_deployment_type == 'host' else etcd_digest_checksum|d(None) }}" sha256: >-
{{ etcd_binary_checksum if (etcd_deployment_type == 'host' or etcd_kubeadm_enabled)
else etcd_digest_checksum|d(None) }}
url: "{{ etcd_download_url }}" url: "{{ etcd_download_url }}"
unarchive: true unarchive: true
owner: "root" owner: "root"