-
Notifications
You must be signed in to change notification settings - Fork 14.8k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
removed usage of deprecated function for naming the pod in provider k8s pod.py #38638
removed usage of deprecated function for naming the pod in provider k8s pod.py #38638
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes this method is deprecated and we need to replace it by the new one, could you do the same thing for the other usages in the cncf.kubernetes provider?
i am goin over all of them right now, thanks for the respond |
i changed a little bit more, i don't want this to be a huge PR, after doing this changes i will continue to change also the other ones |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is just a missing one:
pod_id = add_pod_suffix(pod_name=pod_id, max_len=POD_NAME_MAX_LENGTH) |
because we don't need to update the deprecated methods.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM +1
Pending hussein's comment
d8afed6
to
5041b0b
Compare
…before used a deprecated one and now using add_uniqu_suffix()
…fore used a deprecated one and now using add_uniqe_id()
…nique_id to use add_unique_suffix before it used a deprecated one
…dd_unique_suffix before it used a deprecated one
5041b0b
to
7506940
Compare
hello, after having some issues with my developing environment now everything is done thanks |
You can check https://github.com/apache/airflow/blob/main/contributing-docs/08_static_code_checks.rst to fix the static checks. |
i ran pre-commit and changed the order of the imports |
(k8s/operator/pod.py): changed the function used to create pod name, before used a deprecated one and now using add_uniqu_suffix()
when executing this command
pytest tests/providers/cncf/kubernetes/operators/test_pod.py
received a warning that said we need to change the creation of pod name with a deprecated function
^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named
{pr_number}.significant.rst
or{issue_number}.significant.rst
, in newsfragments.