message: chore: fix up logs streaming for failed deployments
diff: @@ -12,11 +12,11 @@ stream_logs_deployment() {
  # this runs in a loop forever (until killed)
  while [ 1 ]
  do
  - # Gatter all pods and their containers for the current rollout and stream their logs into files
  + # Gather all pods and their containers for the current rollout and stream their logs into files
  kubectl -n ${NAMESPACE} get --insecure-skip-tls-verify pods -l pod-template-hash=${LATEST_POD_TEMPLATE_HASH} -o json | jq -r '.items[] | .metadata.name + " " + .spec.containers[].name' |
  {
  while read -r POD CONTAINER ; do
  - kubectl -n ${NAMESPACE} logs --insecure-skip-tls-verify --timestamps -f $POD -c $CONTAINER $SINCE_TIME 2> /dev/null > /tmp/oc-build-deploy/logs/container/${SERVICE_NAME}/$POD-$CONTAINER.log &
  + kubectl -n ${NAMESPACE} logs --insecure-skip-tls-verify --timestamps -f $POD -c $CONTAINER $SINCE_TIME 2> /dev/null > /tmp/kubectl-build-deploy/logs/container/${SERVICE_NAME}/$POD-$CONTAINER.log &
  done
  # this will wait for all log streaming we started to finish
  