)]}'
{"tools/stop-all-pods":[{"author":{"_account_id":13039,"name":"Martin André","email":"m.andre@redhat.com","username":"mandre"},"change_message_id":"fa03f5d575faee73a2ae70ad6eb791ea82bee77a","unresolved":false,"context_lines":[{"line_number":1,"context_line":"#!/bin/sh"},{"line_number":2,"context_line":""},{"line_number":3,"context_line":"cd $(git rev-parse --show-toplevel)"},{"line_number":4,"context_line":""},{"line_number":5,"context_line":"pods\u003d$(ls k8s/pod/ | awk \u0027{print $1}\u0027)"},{"line_number":6,"context_line":""}],"source_content_type":"application/x-shellscript","patch_set":1,"id":"3a961159_182f028a","line":3,"updated":"2014-12-26 02:01:54.000000000","message":"I think it is more reliable to depend on the list of running pods returned by k8s.\n\nSomething like the following should work:\n\nkubectl get pods |\n awk \u0027NR\u003e1 {print $1}\u0027 |\n xargs -i kubectl delete pod {}","commit_id":"acd9edd2a113eee6685e9f8ec00bea0c89658e30"},{"author":{"_account_id":13039,"name":"Martin André","email":"m.andre@redhat.com","username":"mandre"},"change_message_id":"0af9b91ff86c83f7108d945be8eb7fa97bd2cf17","unresolved":false,"context_lines":[{"line_number":4,"context_line":""},{"line_number":5,"context_line":"# Delete the replication is not cleaning up its pods"},{"line_number":6,"context_line":"# These pods need to be deleted according to their UUID"},{"line_number":7,"context_line":"uuids\u003d$(kubectl get pods -o json | jq \u0027.[][].id\u0027 2\u003e/dev/null | grep -o -E \u0027\"[a-fA-F|0-9|\\-]*\u0027 | cut -c 2- |  grep \u0027\\-\u0027)"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"for uuid in $uuids; do"},{"line_number":10,"context_line":"    if [ $uuid ]; then"}],"source_content_type":"application/x-shellscript","patch_set":2,"id":"3a961159_087acd87","line":7,"updated":"2015-01-06 08:20:02.000000000","message":"Can we do it with go templates instead of relying on jq? \nSomething along those lines:\n\n  kubectl get pods -o template -t \u0027{{range .items}}{{.uid}} {{end}}\u0027","commit_id":"8229c1f6c3448f5b00d04cdf3928ca5776a44ff8"},{"author":{"_account_id":2834,"name":"Steven Dake","email":"steven.dake@gmail.com","username":"sdake"},"change_message_id":"0eced091b673ebde40af8804277b4b7a0f4e4afe","unresolved":false,"context_lines":[{"line_number":4,"context_line":""},{"line_number":5,"context_line":"# Delete the replication is not cleaning up its pods"},{"line_number":6,"context_line":"# These pods need to be deleted according to their UUID"},{"line_number":7,"context_line":"uuids\u003d$(kubectl get pods -o json | jq \u0027.[][].id\u0027 2\u003e/dev/null | grep -o -E \u0027\"[a-fA-F|0-9|\\-]*\u0027 | cut -c 2- |  grep \u0027\\-\u0027)"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"for uuid in $uuids; do"},{"line_number":10,"context_line":"    if [ $uuid ]; then"}],"source_content_type":"application/x-shellscript","patch_set":2,"id":"3a961159_a00aa61d","line":7,"in_reply_to":"3a961159_087acd87","updated":"2015-01-06 14:54:03.000000000","message":"I think that makes a good follow-on patch, but I\u0027d like to release the tag today.  We are already 4 weeks late with this release, and I\u0027d rather not gold plate things like these start/stop scripts when that can be done after release.\n\nThis is blocking the release.","commit_id":"8229c1f6c3448f5b00d04cdf3928ca5776a44ff8"},{"author":{"_account_id":3098,"name":"Jeff Peeler","email":"jpeeler@redhat.com","username":"jpeeler-z"},"change_message_id":"88a7a52a2f15b6d96c72c75a536fb1d405ca8bb1","unresolved":false,"context_lines":[{"line_number":4,"context_line":""},{"line_number":5,"context_line":"# Delete the replication is not cleaning up its pods"},{"line_number":6,"context_line":"# These pods need to be deleted according to their UUID"},{"line_number":7,"context_line":"uuids\u003d$(kubectl get pods -o json | jq \u0027.[][].id\u0027 2\u003e/dev/null | grep -o -E \u0027\"[a-fA-F|0-9|\\-]*\u0027 | cut -c 2- |  grep \u0027\\-\u0027)"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"for uuid in $uuids; do"},{"line_number":10,"context_line":"    if [ $uuid ]; then"}],"source_content_type":"application/x-shellscript","patch_set":2,"id":"3a961159_001c5ac1","line":7,"in_reply_to":"3a961159_a00aa61d","updated":"2015-01-06 15:18:32.000000000","message":"With the above in mind, I\u0027m approving this patch.","commit_id":"8229c1f6c3448f5b00d04cdf3928ca5776a44ff8"}]}
