From 2c134e2e61a4b2f02560fddf7f3b3154781dc2bd Mon Sep 17 00:00:00 2001 From: strowi Date: Fri, 21 Mar 2025 13:54:27 +0100 Subject: [PATCH] fix(resource-discovery): fix url paths for rancher-compatibility --- 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..52179bf48 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