-
Notifications
You must be signed in to change notification settings - Fork 82
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
BaseUri doesn't work properly. #35
Comments
How are you deploying Kubernetes if your API is nested under a /kubernetes/ path? I've not seen this before |
We are using Rancher and our cluster k8s url is: |
Have run into the same issue, based on RFC3986, the guzzle client is being created incorrectly such that only the host will be used from the @tamaspanczel, before I submit a PR to patch this have you had any work arounds? |
You can override public
|
What happens if you initialise the client like the following? $client = new Client([
'master' => 'https://domain.com/k8s/clusters/c-cxwjp',
]); According to the Guzzle client documentation the requests should then be relative to that URL? |
Nevermind I see the problem, I've pushed a commit to resolve this |
Thanks @maclof! |
If kubernetes master url contains path like
http://localhost/kubernetes/
then baseUri doesn't work properly because it callshttp://localhost/v1/api/...
instead ofhttp://localhost/kubernetes/v1/api/...
inClient.php
:The text was updated successfully, but these errors were encountered: