Skip to content

Commit

Permalink
minor cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Felix Ruess <[email protected]>
  • Loading branch information
flixr committed Mar 1, 2023
1 parent 171ebe8 commit 569b563
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 3 additions & 3 deletions flytekit/core/container_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,14 @@ def __init__(
sec_ctx = SecurityContext(secrets=secret_requests)

# pod_template_name overwrites the metadata.pod_template_name
kwargs["metadata"] = kwargs["metadata"] if "metadata" in kwargs else TaskMetadata()
kwargs["metadata"].pod_template_name = pod_template_name
metadata = metadata or TaskMetadata()
metadata.pod_template_name = pod_template_name

super().__init__(
task_type="raw-container",
name=name,
interface=Interface(inputs, outputs),
# metadata=metadata,
metadata=metadata,
task_config=None,
security_ctx=sec_ctx,
**kwargs,
Expand Down
2 changes: 0 additions & 2 deletions flytekit/core/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,6 @@ def _serialize_pod_spec(pod_template: PodTemplate, primary_container: _task_mode
final_containers.append(container)
cast(PodTemplate, pod_template).pod_spec.containers = final_containers

cast(PodTemplate, pod_template).data_config = primary_container.data_loading_config

return ApiClient().sanitize_for_serialization(cast(PodTemplate, pod_template).pod_spec)


Expand Down

0 comments on commit 569b563

Please sign in to comment.