-
Notifications
You must be signed in to change notification settings - Fork 38
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
Error connecting to KubeVirt #50
Comments
temporary solution will be to create api_client with authorization as default header api_client = kubevirt.api_client.ApiClient(
host=kubevirt.configuration.host,
header_name='authorization',
header_value=f'Bearer {token}'
)
api = kubevirt.DefaultApi(api_client) |
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 |
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. |
I follow example code, but still could not connect to kubevirt. it's working fine when using kubectl
Error log
i did check the code & found that the authorization header is missing.
Request Headers
the issue is on defaultAPI, auth_settings is set as empty list [], while on api_client when auth_settings is empty it'l skip the process of set up the auth header.
The text was updated successfully, but these errors were encountered: