dirrao commented on code in PR #37081: URL: https://github.com/apache/airflow/pull/37081#discussion_r1470744567
########## airflow/providers/google/cloud/hooks/kubernetes_engine.py: ########## @@ -507,33 +507,37 @@ async def get_pod(self, name: str, namespace: str) -> V1Pod: :param name: Name of the pod. :param namespace: Name of the pod's namespace. """ - async with Token(scopes=self.scopes) as token: - async with self.get_conn(token) as connection: - v1_api = async_client.CoreV1Api(connection) - pod: V1Pod = await v1_api.read_namespaced_pod( - name=name, - namespace=namespace, - ) - return pod + async with self.service_file_as_context() as service_file: # type: ignore[attr-defined] Review Comment: is there any change in the default auth behavior which might be customers need to be aware of? -- 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: commits-unsubscr...@airflow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org