o-nikolas commented on code in PR #61935:
URL: https://github.com/apache/airflow/pull/61935#discussion_r2819495848


##########
providers/cncf/kubernetes/src/airflow/providers/cncf/kubernetes/hooks/kubernetes.py:
##########
@@ -57,6 +58,13 @@
 
 LOADING_KUBE_CONFIG_FILE_RESOURCE = "Loading Kubernetes configuration file 
kube_config from {}..."
 
+# AWS CLI cache directory that can trigger a race condition (FileExistsError)
+# when multiple processes attempt to create it concurrently during exec-based
+# authentication (e.g. ``aws eks get-token``).  Pre-creating it avoids the 
race.
+# See: https://github.com/apache/airflow/issues/60943
+#      https://github.com/boto/botocore/commit/f1c1bc90
+_AWS_CLI_CACHE_DIR = os.path.join(os.path.expanduser("~"), ".aws", "cli", 
"cache")

Review Comment:
   Same answer as 
[here](https://github.com/apache/airflow/pull/61936#discussion_r2819490402)
   
   I think I prefer 1 or 3, I don't like the complication of 2 for such a small 
usecase
   



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