Skip to content

AirflowProviderDeprecationWarning: Configuration 'namespace' is deprecated. #59563

@kosteev

Description

@kosteev

Apache Airflow Provider(s)

cncf-kubernetes

Versions of Apache Airflow Providers

In one of the latest cncf-kubernetes provider we emit warning message:
"""
/opt/python3.11/lib/python3.11/site-packages/airflow/providers/cncf/kubernetes/executors/kubernetes_executor.py:155 AirflowProviderDeprecationWarning: Configuration 'namespace' is deprecated. Use 'pod_template_file' to specify the namespace instead.
"""

However it is still needed/used in kubernetex_executor_utils.py:
https://github.com/apache/airflow/blob/875a427ab3f1cc06bf470a9cebdd27aa8d9528a5/providers/cncf/kubernetes/src/airflow/providers/cncf/kubernetes/executors/kubernetes_executor_utils.py#L523C53-L523C67

So, this property is actually needed and shouldn't be deprecated?

Apache Airflow version

3.1.0

Operating System

Linux

Deployment

Google Cloud Composer

Deployment details

No response

What happened

No response

What you think should happen instead

No response

How to reproduce

Use latest cncf-kubernetes provider and run Airflow with KubernetesExecutor

Anything else

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions