From aa0d80c59db4c583758df7d8654286d6b4e91e8b Mon Sep 17 00:00:00 2001
From: "Dejaeger, Darren (dd118r)" <dd118r@att.com>
Date: Thu, 20 Jun 2019 11:58:41 -0400
Subject: [PATCH] Add node selector to Keystone test pod

This PS looks to add a node selector into the Keystone test pod's
spec.

Change-Id: If92e0eb6814e25ba108f36298ba01044d42ced33
---
 keystone/templates/pod-rally-test.yaml | 2 ++
 keystone/values.yaml                   | 3 +++
 2 files changed, 5 insertions(+)

diff --git a/keystone/templates/pod-rally-test.yaml b/keystone/templates/pod-rally-test.yaml
index 49501e98b0..cdc9b88b36 100644
--- a/keystone/templates/pod-rally-test.yaml
+++ b/keystone/templates/pod-rally-test.yaml
@@ -34,6 +34,8 @@ metadata:
     {{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" }}
 spec:
   restartPolicy: Never
+  nodeSelector:
+    {{ .Values.labels.test.node_selector_key }}: {{ .Values.labels.test.node_selector_value }}
   serviceAccountName: {{ $serviceAccountName }}
   initContainers:
 {{ tuple $envAll "tests" $mounts_tests_init | include "helm-toolkit.snippets.kubernetes_entrypoint_init_container" | indent 4 }}
diff --git a/keystone/values.yaml b/keystone/values.yaml
index b271846b4d..4b05ec3b73 100644
--- a/keystone/values.yaml
+++ b/keystone/values.yaml
@@ -24,6 +24,9 @@ labels:
   job:
     node_selector_key: openstack-control-plane
     node_selector_value: enabled
+  test:
+    node_selector_key: openstack-control-plane
+    node_selector_value: enabled
 
 release_group: null