From e7905d0b58168ade1e62ac97872aa1c1f885aa07 Mon Sep 17 00:00:00 2001
From: Pete Birley <pete@port.direct>
Date: Fri, 18 May 2018 12:50:42 -0500
Subject: [PATCH] Rally: update image ref to both be unique and match other
 charts

This PS updates the rally db sync image ref to match other charts,
and have a globally unique name.

Change-Id: Iab95cb724d664edeed64af95d1ff20e0b7e207a0
---
 rally/templates/job-manage-db.yaml | 2 +-
 rally/values.yaml                  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/rally/templates/job-manage-db.yaml b/rally/templates/job-manage-db.yaml
index 84d81cde4a..402a1a1c09 100644
--- a/rally/templates/job-manage-db.yaml
+++ b/rally/templates/job-manage-db.yaml
@@ -38,7 +38,7 @@ spec:
 {{ tuple $envAll "manage_db" list | include "helm-toolkit.snippets.kubernetes_entrypoint_init_container" | indent 8 }}
       containers:
         - name: rally-manage-db
-{{ tuple $envAll "manage_db" | include "helm-toolkit.snippets.image" | indent 10 }}
+{{ tuple $envAll "rally_db_sync" | include "helm-toolkit.snippets.image" | indent 10 }}
 {{ tuple $envAll $envAll.Values.pod.resources.jobs.manage_db | include "helm-toolkit.snippets.kubernetes_resources" | indent 10 }}
           command:
             - /tmp/manage-db.sh
diff --git a/rally/values.yaml b/rally/values.yaml
index 5520423b4e..4b48e2d01f 100644
--- a/rally/values.yaml
+++ b/rally/values.yaml
@@ -24,7 +24,7 @@ images:
     bootstrap: docker.io/kolla/ubuntu-source-rally:3.0.3
     dep_check: quay.io/stackanetes/kubernetes-entrypoint:v0.3.1
     db_init: docker.io/kolla/ubuntu-source-rally:3.0.3
-    manage_db: docker.io/kolla/ubuntu-source-rally:3.0.3
+    rally_db_sync: docker.io/kolla/ubuntu-source-rally:3.0.3
     run_task: docker.io/kolla/ubuntu-source-rally:3.0.3
     ks_user: docker.io/openstackhelm/heat:newton
     ks_service: docker.io/openstackhelm/heat:newton