From 8167e5b6908b17f15acb5d68ae30c61cb373167f Mon Sep 17 00:00:00 2001
From: Rong Zhang <rongzhang@alauda.io>
Date: Sun, 23 Dec 2018 22:35:06 +0800
Subject: [PATCH] Fix kubeadm images templates (#3936)

download v1.12.3 kubernetes images failed
---
 roles/download/templates/kubeadm-images.yaml.j2 | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/roles/download/templates/kubeadm-images.yaml.j2 b/roles/download/templates/kubeadm-images.yaml.j2
index 2e0d9ef61..1ec05054a 100644
--- a/roles/download/templates/kubeadm-images.yaml.j2
+++ b/roles/download/templates/kubeadm-images.yaml.j2
@@ -1,5 +1,9 @@
 {% if kube_version is version('v1.12.0', '>=') %}
+{% if kube_version is version('v1.12.0', '>=') and kube_version is version('v1.13.0', '<') %}
+apiVersion: kubeadm.k8s.io/v1alpha3
+{% else %}
 apiVersion: kubeadm.k8s.io/v1beta1
+{% endif %}
 kind: InitConfiguration
 nodeRegistration:
 {% if container_manager == 'crio' %}
-- 
GitLab