Add nodeSelector to enable selecting the desired 11/42511/2
authorTrevor Tao <trevor.tao@arm.com>
Thu, 21 Sep 2017 06:43:29 +0000 (14:43 +0800)
committerTrevor Tao <trevor.tao@arm.com>
Thu, 21 Sep 2017 06:43:29 +0000 (14:43 +0800)
commit0f4cf413a3c527ddf2eab3d724ae758e39af1aa0
tree12ba15eddc81f579029151c9f8cc5b167bce8ba7
parent870d2ba61b4a3352ef8485c3b39690346010e89b
Add nodeSelector to enable selecting the desired
Kubernetes running node when creating containers for
Kubernetes context

For example, a yaml file may looks like:
 servers:
    host:
      image: xxx
      command: /bin/bash
      nodeSelector:
          xxx: yyy

Synchronously change the unit test for this function

Change-Id: If74c9dad9b1a70395bb79f34708a0fde04e7e650
Signed-off-by: Trevor Tao <trevor.tao@arm.com>
tests/unit/orchestrator/test_kubernetes.py
yardstick/orchestrator/kubernetes.py