Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -831,6 +831,13 @@ 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):
self.log.debug(
LOADING_KUBE_CONFIG_FILE_RESOURCE.format(
"connection kube_config dictionary (serializing)"
)
)
kubeconfig = json.dumps(kubeconfig)
await temp_config.write(kubeconfig.encode())
await temp_config.flush()
self._is_in_cluster = False
Expand Down