yuseok89 commented on code in PR #76712:
URL: https://github.com/apache/airflow/pull/76712#discussion_r4526664191


##########
providers/cncf/kubernetes/src/airflow/providers/cncf/kubernetes/hooks/kubernetes.py:
##########
@@ -935,7 +935,7 @@ async def _load_config(self):
 
         in_cluster = self._coalesce_param(self.in_cluster, await 
self._get_field("in_cluster"))
         cluster_context = self._coalesce_param(self.cluster_context, await 
self._get_field("cluster_context"))
-        kubeconfig_path = await self._get_field("kube_config_path")
+        kubeconfig_path = self._coalesce_param(self.config_file, await 
self._get_field("kube_config_path"))

Review Comment:
   Not a blocker, but `KubernetesPodOperator` might be worth a look here. It 
passes the file to the trigger as `config_dict`, so the triggerer doesn't need 
to read 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