コード例 #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'
     }
コード例 #2
0
 def _get_tolerations(self, tolerations):
     return get_tolerations(
         tolerations=tolerations,
         default_tolerations=conf.get(TOLERATIONS_EXPERIMENTS))
コード例 #3
0
ファイル: manager.py プロジェクト: yutiansut/polyaxon
 def _get_tolerations(self, tolerations):
     return get_tolerations(
         tolerations=tolerations,
         default_tolerations=conf.get(TOLERATIONS_NOTEBOOKS))
コード例 #4
0
ファイル: manager.py プロジェクト: hackerwins/polyaxon
 def _get_tolerations(self, tolerations):
     return get_tolerations(
         tolerations=tolerations,
         default_tolerations=conf.get(TOLERATIONS_TENSORBOARDS))
コード例 #5
0
 def _get_tolerations(self, tolerations):
     return get_tolerations(
         tolerations=tolerations,
         default_tolerations=conf.get(TOLERATIONS_BUILD_JOBS))