kannon92 opened a new issue, #32718:
URL: https://github.com/apache/airflow/issues/32718

   ### Apache Airflow version
   
   2.6.3
   
   ### What happened
   
   We find that our Kubernetes Pod Operator will get issues in auth if a token 
expires.  
   
   We use ExecCredentials for authentication and over time, our token expires 
and then we get authentication errors.  
   
   ### What you think should happen instead
   
   In cases when token expires, KubernetesPodOperator should reconnect (and 
re-authenticate) rather than reuse the same connection.  
   
   We have a patch up where we relax the cached_property for the client and 
re-authenticate and that seems to fix this case.
   
   ### How to reproduce
   
   You can reproduce this with setting up 
https://kubernetes.io/docs/reference/config-api/client-authentication.v1beta1/#client-authentication-k8s-io-v1beta1-ExecCredential
 in your Kubernetes cluster and have your task run longer than the time of your 
token.  
   
   Once the token expires, you should get authentication errors.
   
   ### Operating System
   
   linux (not able to access this system to run this)
   
   ### Versions of Apache Airflow Providers
   
   We are using Kubernetes Pod Operator (7.1.0).
   
   ### Deployment
   
   Official Apache Airflow Helm Chart
   
   ### Deployment details
   
   _No response_
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


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