Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
Signed-off-by: Ketan Umare <[email protected]>
  • Loading branch information
kumare3 committed Dec 28, 2022
1 parent f16265d commit bb3d20a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/flytekit-k8s-pod/flytekitplugins/pod/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
from flytekit.models import task as _task_models

_PRIMARY_CONTAINER_NAME_FIELD = "primary_container_name"
PRIMARY_CONTAINER_DEFAULT_NAME = "primary"


def _sanitize_resource_name(resource: _task_models.Resources.ResourceEntry) -> str:
Expand All @@ -34,7 +35,7 @@ class Pod(object):
"""

pod_spec: V1PodSpec
primary_container_name: str = "primary"
primary_container_name: str = PRIMARY_CONTAINER_DEFAULT_NAME
labels: Optional[Dict[str, str]] = None
annotations: Optional[Dict[str, str]] = None

Expand Down

0 comments on commit bb3d20a

Please sign in to comment.