Skip to content
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

exec_in_pods function can not handle pipe operator #143

Open
GDavid97 opened this issue Feb 3, 2023 · 0 comments
Open

exec_in_pods function can not handle pipe operator #143

GDavid97 opened this issue Feb 3, 2023 · 0 comments

Comments

@GDavid97
Copy link

GDavid97 commented Feb 3, 2023

Describe the bug
I wanted to run the following action in a chaos toolkit test.
"provider": { "type": "python", "module": "chaosk8s.pod.actions", "func": "exec_in_pods", "arguments": { "cmd": "echo 'Hello world' | md5sum", "ns":"chaos", "name_pattern":"frontend*" }

Which is a simple example of the pipe operator, it should create the md5sum version of the 'Hello World' string.

However, I got the following result:
'Hello world | md5sum'

Which means it can not process the | operator, but it's considered to be a string.

Expected behavior
I want the ecex_in_pod function to be able to handle pipe - | - operator when using it in the command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant