echo "# Kubectl demonstration" echo "**For several test conditions, what ouput and exit codes to we get?**" echo "Test conditions are indicated by their line prefix." echo "KBCL => spawn('kubectl', [...])" echo "BASH => spawn('bash', ['-c', 'kubectl ...'])" echo "PIPE => spawn('bash', ['-c', 'kubectl ... | tee /dev/null'])" echo "" echo "ALL => kubectl get pod" echo "ONE => \$ALL [PODNAME]" echo "JSN => \$ONE -o json" echo "" echo "## Test Output" echo "\`\$(node child_proc_kubectl_test.js)\`" node child_proc_kubectl_test.js | sed s/\^/\>\ / | sed s/\^\>\ \$// | grep --color=always -E '^.*rtcode:[[:digit:]].*|$' echo "" echo "## Validity" echo "" echo "\`\$(sha1sum child_proc_kubectl_test.js)\`" sha1sum child_proc_kubectl_test.js | sed s/\^/\>\ / echo "" echo "\`\$(which node && which kubectl)\`" (which node && which kubectl) | sed s/\^/\>\ /