From a016dcba18176780ffbb599256b252ec7abd93f7 Mon Sep 17 00:00:00 2001 From: Tristan Cacqueray Date: Thu, 8 Nov 2018 01:12:27 +0000 Subject: [PATCH] install-kubernetes: enable minikube version pinning This change enables using a particular version of minikube for debugging purpose. Change-Id: Ide264165f12185e8313a16b6b6286ab74b32aa15 --- roles/install-kubernetes/README.rst | 5 +++++ roles/install-kubernetes/defaults/main.yaml | 1 + roles/install-kubernetes/tasks/minikube.yaml | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/roles/install-kubernetes/README.rst b/roles/install-kubernetes/README.rst index ea0d962f8..a48798923 100644 --- a/roles/install-kubernetes/README.rst +++ b/roles/install-kubernetes/README.rst @@ -6,3 +6,8 @@ An ansible role to install kubernetes. :default: True If true, installs a Minikube cluster. + +.. zuul:rolevar:: minikube_version + :default: latest + + The version of Minikube to install. diff --git a/roles/install-kubernetes/defaults/main.yaml b/roles/install-kubernetes/defaults/main.yaml index 19ff90d2d..6040df0d3 100644 --- a/roles/install-kubernetes/defaults/main.yaml +++ b/roles/install-kubernetes/defaults/main.yaml @@ -1 +1,2 @@ install_kubernetes_with_cluster: True +minikube_version: latest diff --git a/roles/install-kubernetes/tasks/minikube.yaml b/roles/install-kubernetes/tasks/minikube.yaml index d0c2f50c1..7c3f9790e 100644 --- a/roles/install-kubernetes/tasks/minikube.yaml +++ b/roles/install-kubernetes/tasks/minikube.yaml @@ -5,7 +5,7 @@ - name: Download Minikube get_url: - url: https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 + url: https://storage.googleapis.com/minikube/releases/{{ minikube_version }}/minikube-linux-amd64 dest: /tmp/minikube mode: 0755 when: stat_result.stat.exists == False