-
Notifications
You must be signed in to change notification settings - Fork 36
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
APIs with lookup by namespace fail due to improper resource path replacement #53
Comments
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with /lifecycle stale |
/remove-lifecycle stale |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with /lifecycle stale |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with /lifecycle rotten |
/remove-lifecycle rotten. |
Rotten issues close after 30d of inactivity. /close |
@kubevirt-bot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
For example, list_namespaced_virtual_machine_instance_preset("testns")
makes a request to:
2022-08-02 09:49:55,106 DEBUG https://api.example.com.com:6443 "GET /apis/kubevirt.io/v1/namespaces/%7Bnamespace:%5Ba-z0-9%5D%5Ba-z0-9%5C-%5D*%7D/virtualmachineinstancepresets HTTP/1.1" 200 140
when it should be making a request to
2022-08-02 09:45:34,839 DEBUG https://api.example.com:6443 "GET /apis/kubevirt.io/v1/namespaces/testns/virtualmachineinstancepresets HTTP/1.1"
The issue is the resource path replacement:
https://github.com/kubevirt/client-python/blob/master/kubevirt/api_client.py#L121
https://raw.githubusercontent.com/kubevirt/client-python/master/kubevirt/apis/default_api.py
return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace:[a-z0-9][a-z0-9\-]*}/virtualmachineinstancepresets', 'GET',
{namespace} would be replaced, {namespace:[a-z0-9][a-z0-9-]*} is not.
The text was updated successfully, but these errors were encountered: