rawwar commented on issue #46964:
URL: https://github.com/apache/airflow/issues/46964#issuecomment-2675969404

   So, I've been able to pinpoint the location of the code where the issue is 
happening.  Its happening in `KubernetesPodTrigger` class's `async run` method.
   
   
https://github.com/apache/airflow/blob/946a62aa835ab10bd83343bcdeb8354d7bbfc7c6/providers/cncf/kubernetes/src/airflow/providers/cncf/kubernetes/triggers/pod.py#L138
   
   
   When ever this method returns with a TriggerEvent, That's when the failure 
happens. From what I understand, I think, when the task is rescheduled on to 
the worker, it does not have the external cluster's kubeconfig. Rather, its 
trying to use default kubeconfig and that's causing the forbidden error


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