josh-fell opened a new pull request, #34106:
URL: https://github.com/apache/airflow/pull/34106

   Best practice to is make constructors of operators/sensors as simple as 
possible. Currently this sensor directly builds a KubernetesHook object in its 
construction. Yes, there are db or external calls when building the hook object 
itself, but:
   1. if this hook changes for any reason, these types calls might sneak in
   2. doesn't allow for templating of `kubernetes_conn_id` as brought up in 
[Airflow 
Slack](https://apache-airflow.slack.com/archives/CCQ7EGB1P/p1693904864661079)


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