You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by ka...@apache.org on 2020/08/31 16:41:02 UTC

[airflow] branch v1-10-stable updated: Remove deprecation warning from contrib/kubernetes/pod.py

This is an automated email from the ASF dual-hosted git repository.

kaxilnaik pushed a commit to branch v1-10-stable
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/v1-10-stable by this push:
     new 827a717  Remove deprecation warning from contrib/kubernetes/pod.py
827a717 is described below

commit 827a717fecc675b4d58fa202be003dee8e423632
Author: Kaxil Naik <ka...@gmail.com>
AuthorDate: Wed Aug 26 15:04:15 2020 +0100

    Remove deprecation warning from contrib/kubernetes/pod.py
    
    We already have warning in the POD class. We should remove the warning from top level as it shows up in the Webserver logs on bootup. Example:
    
    ```
    [2020-08-26 13:54:53,652] {security.py:477} INFO - Start syncing user roles.
    [2020-08-26 13:54:54,482] {security.py:387} INFO - Fetching a set of all permission, view_menu from FAB meta-table
    [2020-08-26 13:54:55,260] {security.py:330} INFO - Cleaning faulty perms
    /usr/local/airflow/config/airflow_local_settings.py:2: DeprecationWarning: This module is deprecated. Please use `airflow.kubernetes.pod`.
      from airflow.contrib.kubernetes.pod import Pod
    ```
---
 airflow/contrib/kubernetes/pod.py | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/airflow/contrib/kubernetes/pod.py b/airflow/contrib/kubernetes/pod.py
index 81e4149..9dc11cc 100644
--- a/airflow/contrib/kubernetes/pod.py
+++ b/airflow/contrib/kubernetes/pod.py
@@ -32,11 +32,6 @@ from kubernetes.client.api_client import ApiClient
 
 api_client = ApiClient()
 
-warnings.warn(
-    "This module is deprecated. Please use `airflow.kubernetes.pod`.",
-    DeprecationWarning, stacklevel=2
-)
-
 
 class Pod(object):
     """