eladkal commented on a change in pull request #20647:
URL: https://github.com/apache/airflow/pull/20647#discussion_r791137078



##########
File path: airflow/providers/google/cloud/operators/kubernetes_engine.py
##########
@@ -335,8 +339,16 @@ def __init__(
                 stacklevel=2,
             )
             is_delete_operator_pod = False
+        if in_cluster:
+            warnings.warn(
+                f"You should not set parameter `in_cluster` `True` in class 
{self.__class__.__name__}. "
+                "This operator uses Google Service Account(GSA) not Kubernetes 
Service Account(KSA)."
+                "If you can use KSA with in_cluster `True`, you should use 
KubernetesPodOperator directly.",
+                DeprecationWarning,
+                stacklevel=2,
+            )

Review comment:
       this can be explained in the operator documentation this is not really a 
deprecation warning.




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