Skip to content

Commit

Permalink
Fails if kubeadm_version do not matches kubernetes version (#6302)
Browse files Browse the repository at this point in the history
  • Loading branch information
caruccio authored Sep 21, 2020
1 parent 5ec2467 commit 8908a70
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions roles/download/tasks/prep_kubeadm_images.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
---
- name: prep_kubeadm_images | Check kubeadm version matches kubernetes version
fail:
msg: "Kubeadm version {{ kubeadm_version }} do not matches kubernetes {{ kube_version }}"
when:
- not skip_downloads | default(false)
- not kubeadm_version == downloads.kubeadm.version

- name: prep_kubeadm_images | Download kubeadm binary
include_tasks: "download_file.yml"
vars:
Expand Down

0 comments on commit 8908a70

Please sign in to comment.