Skip to content

More meaningful name for @task.kubernetes pods by default #46464

@insomnes

Description

@insomnes

Description

Generate more meaningful default names for pods by @task.kubernetes with explicit randomness control

Use case/motivation

Reference PR with tests showing the desired changes:
#46462

Now pod created by decorator would have name f"k8s_airflow_pod_{uuid.uuid4().hex}" if name was not explicitly provided by the user.

I want more meaningful names by default (via python_callable name utilization) and to reuse already present randomness in name control option from KubernetesPodOperator: random_name_suffix.

Related issues

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions