Skip to content

Commit

Permalink
set property public
Browse files Browse the repository at this point in the history
  • Loading branch information
marekliszka committed Apr 4, 2023
1 parent 188f297 commit 23f2528
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kubeluigi/__init__.py
Expand Up @@ -28,7 +28,7 @@ class KubernetesJobTask:

def _init_task_metadata(self):
self.uu_name = self.name
self._tolerations: List[V1Toleration] = []
self.tolerations: List[V1Toleration] = []

def _init_kubernetes(self):
self.kubernetes_client = kubernetes_client()
Expand Down Expand Up @@ -81,7 +81,7 @@ def build_job_definition(self) -> V1Job:
schema = self.spec_schema()
schema_with_volumes = self._attach_volumes_to_spec(schema)
pod_template_spec = pod_spec_from_dict(
self.uu_name, schema_with_volumes, self.labels, self.restart_policy, tolerations=self._tolerations
self.uu_name, schema_with_volumes, self.labels, self.restart_policy, tolerations=self.tolerations
)

job = job_definition(
Expand Down Expand Up @@ -152,4 +152,4 @@ def add_volume(self, volume):

def add_toleration(self, key, value, effect='NoSchedule', operator='Equals'):
toleration = V1Toleration(key=key, value=value, effect=effect, operator=operator)
return self._tolerations.append(toleration)
return self.tolerations.append(toleration)

0 comments on commit 23f2528

Please sign in to comment.