We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I am getting this error:
TypeError: delete_namespaced_pod() takes 3 positional arguments but 4 were given when trying to kill a pod with latest chaostolkit-kubernetes ..
here is the json:
{ "version": "1.0.0", "title": "System is resilient to provider's failures", "description": "Can our consumer survive gracefully a provider's failure?", "method": [ { "type": "probe", "name": "count-pods-before-termination", "provider": { "type": "python", "module": "chaosk8s.pod.probes", "func": "count_pods", "arguments": { "label_selector": "app=nginx", "ns": "ns1" } }, "pauses": { "after": 10 } }, { "type": "action", "name": "Terminate_pod", "provider": { "type": "python", "module": "chaosk8s.pod.actions", "func": "terminate_pods", "arguments": { "label_selector": "app=nginx", "ns": "ns1" } }, "pauses": { "after": 2 } }, { "type": "probe", "name": "count-pods-after-termintation", "provider": { "type": "python", "module": "chaosk8s.pod.probes", "func": "count_pods", "arguments": { "label_selector": "app=nginx", "ns": "ns1" } }, "pauses": { "after": 10 } } ], "rollbacks": [ ] }
The text was updated successfully, but these errors were encountered:
Indeed.
I don't know if the API changed or, more likely, it was a mistake from the extension's code.
https://github.com/chaostoolkit/chaostoolkit-kubernetes/blob/master/chaosk8s/pod/actions.py#L96
should be
res = v1.delete_namespaced_pod(p.metadata.name, ns, body=body)
I'll fix and release.
Thanks!
Sorry, something went wrong.
f074b9b
Thanks!!
Please try to update chaostoolkit-kubernetes :)
https://pypi.org/project/chaostoolkit-kubernetes/
pip install -U chaostoolkit-kubernetes
works fine now.. thanks!
Lawouach
No branches or pull requests
I am getting this error:
TypeError: delete_namespaced_pod() takes 3 positional arguments but 4 were given
when trying to kill a pod with latest chaostolkit-kubernetes ..
here is the json:
The text was updated successfully, but these errors were encountered: