Using interface name in kubectl plugin

In Rocky we've changed format of Pod annotations.
Adding the new format in kubectl plugin

Change-Id: I8933d331b15ccb7b0fa33b796537b26112bf8cf0
This commit is contained in:
Itzik Brown 2018-07-22 08:29:02 +03:00
parent a41ec9ef92
commit 18e37d5e13

View File

@ -132,6 +132,7 @@ def vifs(session, server, namespace, args):
else:
vif = json.loads(vif)
vif = vif.get('eth0', vif)
network = (vif['versioned_object.data']['network']
['versioned_object.data'])
first_subnet = (network['subnets']['versioned_object.data']