KoviAnusha commented on code in PR #57169:
URL: https://github.com/apache/airflow/pull/57169#discussion_r2458360213
##########
providers/cncf/kubernetes/src/airflow/providers/cncf/kubernetes/hooks/kubernetes.py:
##########
@@ -830,6 +830,8 @@ async def api_client_from_kubeconfig_file(_kubeconfig_path:
str | None):
"Reading kubernetes configuration file from connection "
"object and writing temporary config file with its
content",
)
+ if isinstance(kubeconfig, dict):
+ kubeconfig = json.dumps(kubeconfig)
Review Comment:
Good catch! This makes deferrable mode much smoother for dict-based configs.
Maybe worth adding a small debug log when we serialize the dict, just for
easier traceability. What do you think?
--
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]