Add subnet_per_namespace config option
Change-Id: I0e2f3834bde465560b8d4c4ae375c38b41118000 Depends-on: I49e0f59008894078f9e40198873caa78767ef0b3
This commit is contained in:
parent
42c4d53441
commit
66958972da
|
@ -79,4 +79,6 @@ kuryr_k8s_opts = [
|
|||
help="The label is used to identify the Kuryr controller pods"),
|
||||
cfg.BoolOpt("prepopulation_enabled", default=False,
|
||||
help="Whether prepopulation of ports is enabled"),
|
||||
cfg.BoolOpt("subnet_per_namespace", default=False,
|
||||
help="Whether there is a subnet per each namespace"),
|
||||
]
|
||||
|
|
|
@ -37,8 +37,8 @@ class TestPortPoolScenario(base.BaseKuryrScenarioTest):
|
|||
@classmethod
|
||||
def skip_checks(cls):
|
||||
super(TestPortPoolScenario, cls).skip_checks()
|
||||
if not CONF.kuryr_kubernetes.namespace_enabled:
|
||||
raise cls.skipException('Namespace driver and handler must be '
|
||||
if not CONF.kuryr_kubernetes.subnet_per_namespace:
|
||||
raise cls.skipException('Subnet per namespace must be '
|
||||
'enabled to run these tests')
|
||||
if not CONF.kuryr_kubernetes.port_pool_enabled:
|
||||
raise cls.skipException(
|
||||
|
|
Loading…
Reference in New Issue