Exemple #1
0
 def get_pod_node_selector(self):
     assert get_node_selector(None, None) is None
     assert get_node_selector({'foo': 'bar'}, None) == {'foo': 'bar'}
     assert get_node_selector(None, {"foo": "bar"}) == {'foo': 'bar'}
     assert get_node_selector({'foo': 'bar'}, {"foo": "moo"}) == {
         'foo': 'bar'
     }
Exemple #2
0
 def _get_node_selector(self, node_selector):
     return get_node_selector(
         node_selector=node_selector,
         default_node_selector=conf.get(NODE_SELECTORS_EXPERIMENTS))
Exemple #3
0
 def _get_node_selector(self, node_selector):
     return get_node_selector(
         node_selector=node_selector,
         default_node_selector=conf.get(NODE_SELECTORS_NOTEBOOKS))
Exemple #4
0
 def _get_node_selector(self, node_selector):
     return get_node_selector(
         node_selector=node_selector,
         default_node_selector=conf.get(NODE_SELECTORS_TENSORBOARDS))
Exemple #5
0
 def _get_node_selector(self, node_selector):
     return get_node_selector(
         node_selector=node_selector,
         default_node_selector=conf.get(NODE_SELECTORS_BUILD_JOBS))