Skip to content

Commit

Permalink
fix error with resource discovery when the api-paths are not at the root
Browse files Browse the repository at this point in the history
  • Loading branch information
strowi committed Jul 19, 2024
1 parent 824c49b commit 1477d8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/krane/cluster_resource_discovery.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1477d8f

Please sign in to comment.