From bb3d20a0efffc821c441b52c62c3a660cc2cf258 Mon Sep 17 00:00:00 2001 From: Ketan Umare Date: Tue, 27 Dec 2022 21:09:28 -0800 Subject: [PATCH] updated Signed-off-by: Ketan Umare --- plugins/flytekit-k8s-pod/flytekitplugins/pod/task.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/flytekit-k8s-pod/flytekitplugins/pod/task.py b/plugins/flytekit-k8s-pod/flytekitplugins/pod/task.py index 4989526ab2..9e8e5ef937 100644 --- a/plugins/flytekit-k8s-pod/flytekitplugins/pod/task.py +++ b/plugins/flytekit-k8s-pod/flytekitplugins/pod/task.py @@ -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: @@ -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