VladaZakharova commented on code in PR #28230:
URL: https://github.com/apache/airflow/pull/28230#discussion_r1055241805


##########
airflow/providers/cncf/kubernetes/operators/kubernetes_pod.py:
##########
@@ -437,6 +442,10 @@ def hook(self) -> KubernetesHook:
     def client(self) -> CoreV1Api:
         return self.hook.core_v1_client
 
+    def get_hook(self):
+        warnings.warn("get_hook is deprecated. Please use hook instead.", 
DeprecationWarning, stacklevel=2)
+        return self.hook
+

Review Comment:
   We have moved this method to be placed in one place as other methods after 
all the cached_properties. We will avoid such kind of changes in next PRs, 
thanks!
   
   



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