Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make pod name optional in KubernetesPodOperator #27120

Merged
merged 3 commits into from
Oct 21, 2022

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.

When not provided, let's just use the task name, right?
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 provider related issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants