Fix how tobiko_pod_extra_network is added to tobiko background pod
The applied configuration was wrong and due to that the extra network was not properly added to the pod. Change-Id: Id7063dc4d6a77271cb2e1cfc877849c51e6c4c6a
This commit is contained in:
parent
8914cf20e8
commit
063a261955
@ -382,8 +382,9 @@ def _start_tobiko_command_pod(cmd_args, pod_name):
|
||||
}
|
||||
|
||||
if CONF.tobiko.podified.tobiko_pod_extra_network:
|
||||
pod_def["metadata"]["k8s.v1.cni.cncf.io/networks"] = \
|
||||
CONF.tobiko.podified.tobiko_pod_extra_network
|
||||
pod_def["metadata"]["annotations"] = {
|
||||
"k8s.v1.cni.cncf.io/networks":
|
||||
CONF.tobiko.podified.tobiko_pod_extra_network}
|
||||
if CONF.tobiko.podified.tobiko_pod_tolerations:
|
||||
pod_def["spec"]["tolerations"] = \
|
||||
CONF.tobiko.podified.tobiko_pod_tolerations
|
||||
|
Loading…
x
Reference in New Issue
Block a user