Skip to content

Comments

Make pod name optional in KubernetesPodOperator#27120

Merged
dstandish merged 3 commits intoapache:mainfrom
astronomer:name-optional-in-kpo
Oct 21, 2022
Merged

Make pod name optional in KubernetesPodOperator#27120
dstandish merged 3 commits intoapache:mainfrom
astronomer:name-optional-in-kpo

Conversation

@dstandish
Copy link
Contributor

@dstandish dstandish commented Oct 18, 2022

When not provided, let's just use the task name, right? Previously, if you did not provide it, you had to have provided a pod template or pod spec.

@boring-cyborg boring-cyborg bot added provider:cncf-kubernetes Kubernetes (k8s) provider related issues area:providers labels Oct 18, 2022
When not provided, let's just use the task name, right?
@dstandish dstandish force-pushed the name-optional-in-kpo branch from 42120f5 to 023c0bd Compare October 18, 2022 21:13
Features
~~~~~~~~

Previously, ``namespace`` and ``name`` were required arguments for KubernetesPodOperator. Now, if ``name`` is not supplied, ``task_id`` will be used. And if ``namespace`` is not supplied, and the task is running in a cluster, then the task pod's namespace will be used.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mmm was name mandatory for KPO? I think it was optional because it could have been defined in pod template

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

true, i'll clean it up in the namespace one

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actually, had to fix something anyway so clarified here

@dstandish dstandish merged commit c9e5768 into apache:main Oct 21, 2022
@dstandish dstandish deleted the name-optional-in-kpo branch October 21, 2022 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:providers provider:cncf-kubernetes Kubernetes (k8s) provider related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants