Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Trying to delete a specific pod name using cmd line brings this error

yosser.mahfoudh April 28, 2022

- pipe: atlassian/kubectl-run:3.2.0
variables:
KUBE_CONFIG: $KUBE_CONFIG
KUBECTL_COMMAND: "get pods -n default --no-headers=true | grep ^core-srv | awk '{print $1}' |head -n2 |tail -n1 |xargs kubectl delete pod"

 

 

the output is this 

Please I need helpCapture.PNG

1 answer

1 accepted

0 votes
Answer accepted
o_kyrdan May 6, 2022

Hi @yosser.mahfoudh

Thank you for your question!

Current pipe's command implementation based on Python subprocess module.

So, this complex command with "shell pipe" is not supported.

 

If you need some feature implementation you could create your own custom pipe according to the guide.

 

Best regards,
Oleksandr Kyrdan

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events