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' }
def _get_tolerations(self, tolerations): return get_tolerations( tolerations=tolerations, default_tolerations=conf.get(TOLERATIONS_EXPERIMENTS))
def _get_tolerations(self, tolerations): return get_tolerations( tolerations=tolerations, default_tolerations=conf.get(TOLERATIONS_NOTEBOOKS))
def _get_tolerations(self, tolerations): return get_tolerations( tolerations=tolerations, default_tolerations=conf.get(TOLERATIONS_TENSORBOARDS))
def _get_tolerations(self, tolerations): return get_tolerations( tolerations=tolerations, default_tolerations=conf.get(TOLERATIONS_BUILD_JOBS))