From 8d74c3f13dea980d84c9f86c8e896450dc1b9ef5 Mon Sep 17 00:00:00 2001 From: lawik974 Date: Tue, 12 Mar 2024 10:08:59 +0100 Subject: [PATCH] fix load_incluster config does not return a coroutine --- kube_notify/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kube_notify/app.py b/kube_notify/app.py index 7e63bb6..ce50137 100644 --- a/kube_notify/app.py +++ b/kube_notify/app.py @@ -167,7 +167,7 @@ def main(): # Initialize Kubernetes client ioloop = asyncio.get_event_loop() if args.inCluster: - ioloop.run_until_complete(kubernetes_asyncio.config.load_incluster_config()) + kubernetes_asyncio.config.load_incluster_config() else: ioloop.run_until_complete( kubernetes_asyncio.config.load_kube_config(context=args.context)