eladkal commented on code in PR #27197:
URL: https://github.com/apache/airflow/pull/27197#discussion_r1002430679


##########
airflow/providers/cncf/kubernetes/operators/kubernetes_pod.py:
##########
@@ -213,21 +212,10 @@ def __init__(
         pod_runtime_info_envs: list[k8s.V1EnvVar] | None = None,
         termination_grace_period: int | None = None,
         configmaps: list[str] | None = None,
-        resources: dict[str, Any] | None = None,
         **kwargs,
     ) -> None:
 
-        if isinstance(resources, k8s.V1ResourceRequirements):
-            warnings.warn(
-                "Specifying resources for the launched pod with 'resources' is 
deprecated. "
-                "Use 'container_resources' instead.",
-                category=DeprecationWarning,
-                stacklevel=2,
-            )
-            container_resources = resources
-            resources = None
-
-        super().__init__(resources=resources, **kwargs)
+        super().__init__(**kwargs)

Review Comment:
   This may cause problems for users who did not follow the deprecation and did 
not notice change log when upgrading since resources is parameter of 
BaseOperator so it will not produce the usual error for using a non-existed 
parameter. I don't think there is much we can do about it?



-- 
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