From 1477d8f827d27008121972f1e71e6be7f48f21a7 Mon Sep 17 00:00:00 2001 From: strowi Date: Fri, 19 Jul 2024 22:31:54 +0200 Subject: [PATCH] fix error with resource discovery when the api-paths are not at the root --- lib/krane/cluster_resource_discovery.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/krane/cluster_resource_discovery.rb b/lib/krane/cluster_resource_discovery.rb index 44f968906..a4987d3f2 100644 --- a/lib/krane/cluster_resource_discovery.rb +++ b/lib/krane/cluster_resource_discovery.rb @@ -64,7 +64,7 @@ def api_paths def fetch_api_path(path) @api_path_cache[path] ||= begin - raw_json, err, st = kubectl.run("get", "--raw", path, attempts: 2, use_namespace: false) + raw_json, err, st = kubectl.run("get", "--raw", base_api_path , attempts: 2, use_namespace: false) if st.success? MultiJson.load(raw_json) else