Exemple #1
0
 def get_pod_tolerations(self):
     assert get_tolerations(None, None) is None
     assert get_tolerations([{'foo': 'bar'}], None) == [{'foo': 'bar'}]
     assert get_tolerations(None, [{"foo": "bar"}]) == [{'foo': 'bar'}]
     assert get_tolerations([{
         'foo': 'bar'
     }], [{
         "foo": "moo"
     }]) == {
         'foo': 'bar'
     }
Exemple #2
0
 def _get_tolerations(self, tolerations):
     return get_tolerations(
         tolerations=tolerations,
         default_tolerations=conf.get(TOLERATIONS_EXPERIMENTS))
Exemple #3
0
 def _get_tolerations(self, tolerations):
     return get_tolerations(
         tolerations=tolerations,
         default_tolerations=conf.get(TOLERATIONS_NOTEBOOKS))
Exemple #4
0
 def _get_tolerations(self, tolerations):
     return get_tolerations(
         tolerations=tolerations,
         default_tolerations=conf.get(TOLERATIONS_TENSORBOARDS))
Exemple #5
0
 def _get_tolerations(self, tolerations):
     return get_tolerations(
         tolerations=tolerations,
         default_tolerations=conf.get(TOLERATIONS_BUILD_JOBS))