Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix error with resource discovery when the api-paths are not at the root #959

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

strowi
Copy link
Contributor

@strowi strowi commented Jul 19, 2024

What are you trying to accomplish with this PR?
fix #892

How is this accomplished?
kubectl.run("get", "--raw", path, attempts: 2, use_namespace: false) in resource-discovery is using statich / as path which breaks when api_paths are not at the root level.
There is already a dynamic discovery for base_api_path, so using that similar to api_path_cache fixes the error.

What could go wrong?

  • maybe wrong paths being discovered ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error retrieving raw URIs from Rancher / Proxied-APIs
1 participant