Add "env" parameter in Kubernetes context 47/57347/5
authorJohn O Loughlin <john.oloughlin@intel.com>
Fri, 11 May 2018 17:09:54 +0000 (18:09 +0100)
committerRodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
Fri, 6 Jul 2018 09:02:21 +0000 (09:02 +0000)
commitab8629071966fb46a4eeac473cda3352424fa350
treed151462673de51b90f54b7b7ea178225be1e0efe
parent42d82c8766fc449e4f495ce0d727ea3499a8b6de
Add "env" parameter in Kubernetes context

This new parameter, "env", will allow the user to
automatically to add environment variables in a pod definition

Example of definition in a context:
  context:
    type: Kubernetes
      servers:
        host:
            image: ...
            commands: ...
            env:
                - <variable name>: <variable value>
                - <variable name>: <variable value>

The volume type and the definition must be one of the supported
ones in Kubernetes [1].

[1] https://kubernetes.io/docs/concepts/storage/volumes/#types-of-volumes

JIRA: YARDSTICK-1161

Change-Id: Icf372a98c090063f10c9217755519ab92ba9b0ba
Signed-off-by: John O Loughlin <john.oloughlin@intel.com>
yardstick/orchestrator/kubernetes.py
yardstick/tests/unit/orchestrator/test_kubernetes.py