The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

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

TAGS
AUG Leaders

Atlassian Community Events