-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Trailing slash on kube/config causes failures. #388
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
Comments
Looks like just adding rstrip('/') here fixes it: def _load_cluster_info(self):
if 'server' in self._cluster:
self.host = self._cluster['server'].rstrip('/') |
This issue is related to #375 |
Fixed by kubernetes-client/python-base#45. Closing /close |
@roycaihw: 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. |
* handle this error: kubernetes-client/python#388 * getting started need to figure out what is the right way to handle the delete when there is ambiguety in the resources * finished adding the search for resource ID stuff * works for single resources * works - will fix the tests later * fix testss * trying that * trying to make this work in python3 * final changes
Fix trailing slash on kube/config failure kubernetes-client#388
Using the example1 code if your ~/.kube/config has an ending slash in the URL you get this failure:
If you remove the trailing slash in the config file it works fine. kubectl has no issue with the trailing slash.
The text was updated successfully, but these errors were encountered: