summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Cacqueray <tdecacqu@redhat.com>2018-11-08 01:12:27 +0000
committerAndreas Jaeger <jaegerandi@gmail.com>2018-11-08 07:11:30 +0000
commita016dcba18176780ffbb599256b252ec7abd93f7 (patch)
treeac76e541723741d4d0f6d4939a3e7db2bd4f1dfc
parent76fdb33658995b6ddcbad5f66b74bc1d93aae509 (diff)
install-kubernetes: enable minikube version pinning
This change enables using a particular version of minikube for debugging purpose. Change-Id: Ide264165f12185e8313a16b6b6286ab74b32aa15
Notes
Notes (review): Code-Review+2: Andreas Jaeger <jaegerandi@gmail.com> Code-Review+2: Tobias Henkel <tobias.henkel@bmw.de> Workflow+1: Tobias Henkel <tobias.henkel@bmw.de> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Thu, 08 Nov 2018 10:30:28 +0000 Reviewed-on: https://review.openstack.org/616388 Project: openstack-infra/zuul-jobs Branch: refs/heads/master
-rw-r--r--roles/install-kubernetes/README.rst5
-rw-r--r--roles/install-kubernetes/defaults/main.yaml1
-rw-r--r--roles/install-kubernetes/tasks/minikube.yaml2
3 files changed, 7 insertions, 1 deletions
diff --git a/roles/install-kubernetes/README.rst b/roles/install-kubernetes/README.rst
index ea0d962..a487989 100644
--- a/roles/install-kubernetes/README.rst
+++ b/roles/install-kubernetes/README.rst
@@ -6,3 +6,8 @@ An ansible role to install kubernetes.
6 :default: True 6 :default: True
7 7
8 If true, installs a Minikube cluster. 8 If true, installs a Minikube cluster.
9
10.. zuul:rolevar:: minikube_version
11 :default: latest
12
13 The version of Minikube to install.
diff --git a/roles/install-kubernetes/defaults/main.yaml b/roles/install-kubernetes/defaults/main.yaml
index 19ff90d..6040df0 100644
--- a/roles/install-kubernetes/defaults/main.yaml
+++ b/roles/install-kubernetes/defaults/main.yaml
@@ -1 +1,2 @@
1install_kubernetes_with_cluster: True 1install_kubernetes_with_cluster: True
2minikube_version: latest
diff --git a/roles/install-kubernetes/tasks/minikube.yaml b/roles/install-kubernetes/tasks/minikube.yaml
index d0c2f50..7c3f979 100644
--- a/roles/install-kubernetes/tasks/minikube.yaml
+++ b/roles/install-kubernetes/tasks/minikube.yaml
@@ -5,7 +5,7 @@
5 5
6- name: Download Minikube 6- name: Download Minikube
7 get_url: 7 get_url:
8 url: https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 8 url: https://storage.googleapis.com/minikube/releases/{{ minikube_version }}/minikube-linux-amd64
9 dest: /tmp/minikube 9 dest: /tmp/minikube
10 mode: 0755 10 mode: 0755
11 when: stat_result.stat.exists == False 11 when: stat_result.stat.exists == False