From 994d1e50a5bc53687cb5224f6de70451bf15bde8 Mon Sep 17 00:00:00 2001 From: Ryan Hallisey Date: Tue, 24 May 2016 22:27:54 -0400 Subject: [PATCH] Add kolla-kubernetes bootstrap capability to mariadb Kolla-kubernetes requires there be an alternative way to bootstrap the container. Kolla-kubernetes uses the Kubernetes API endpoint to read information about the cluster so that the bootstrap process runs serially. Partially-implements: blueprint kolla-kubernetes-extended-dockerfiles Change-Id: I6185f2522b1151c934871a1ad2387f0001c0a320 Co-authored-by: Ken Wronkiewicz --- docker/mariadb/extend_start.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/docker/mariadb/extend_start.sh b/docker/mariadb/extend_start.sh index e5d9632b91..629b3a98c6 100644 --- a/docker/mariadb/extend_start.sh +++ b/docker/mariadb/extend_start.sh @@ -18,6 +18,17 @@ function bootstrap_db { mysqladmin -uroot -p"${DB_ROOT_PASSWORD}" shutdown } +function kolla_kubernetes { + KUBE_TOKEN=$(