You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 1, 2018. It is now read-only.
I'm using pykube v0.13.0 on Windows, but I can't update ReplicationController.
>>> import pykube
>>> api = pykube.HTTPClient(pykube.KubeConfig.from_file("C:\\Users\\kazuyuki\\.kube\\config"))
>>> rc = pykube.ReplicationController.objects(api).get_by_name("myapp")
>>> rc.update()
Traceback (most recent call last):
File "C:\Program Files\Python35\lib\site-packages\pykube\http.py", line 99, in raise_for_status
resp.raise_for_status()
File "C:\Program Files\Python35\lib\site-packages\requests\models.py", line 884, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://192.168.99.100:8443/api/v1/namespaces/default/replicationcontrollers%5Cmyapp
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Program Files\Python35\lib\site-packages\pykube\objects.py", line 90, in update
self.api.raise_for_status(r)
File "C:\Program Files\Python35\lib\site-packages\pykube\http.py", line 106, in raise_for_status
raise HTTPError(payload["message"])
pykube.exceptions.HTTPError: the server could not find the requested resource
>>>
The url: https://192.168.99.100:8443/api/v1/namespaces/default/replicationcontrollers%5Cmyapp is invalid. This url is generated in objects.py,
I'm using pykube v0.13.0 on Windows, but I can't update ReplicationController.
The
url: https://192.168.99.100:8443/api/v1/namespaces/default/replicationcontrollers%5Cmyapp
is invalid. This url is generated inobjects.py
,It seems that this line can't work in Windows, where
os.path
uses\
(%5C
in the url) instead of/
.I think this line should be
The text was updated successfully, but these errors were encountered: