potiuk commented on a change in pull request #20031:
URL: https://github.com/apache/airflow/pull/20031#discussion_r771262854



##########
File path: airflow/providers/cncf/kubernetes/backcompat/pod_runtime_info_env.py
##########
@@ -14,13 +14,25 @@
 # KIND, either express or implied.  See the License for the
 # specific language governing permissions and limitations
 # under the License.
-"""Classes for interacting with Kubernetes API"""
+"""
+Classes for interacting with Kubernetes API.
+
+This module is deprecated. Please use :mod:`kubernetes.client.models.V1EnvVar`.
+"""
+
+import warnings
 
 import kubernetes.client.models as k8s
 
+warnings.warn(
+    "This module is deprecated. Please use 
`kubernetes.client.models.V1EnvVar`.",
+    DeprecationWarning,
+    stacklevel=2,

Review comment:
       ```suggestion
       stacklevel=3,
   ```
   
   See the general comment




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to