message: support for kubernetes remote shell
diff: @@ -100,7 +100,7 @@ fi
  OC="/usr/bin/oc --insecure-skip-tls-verify -n ${PROJECT} --token=${OPENSHIFT_TOKEN} --server=${OPENSHIFT_CONSOLE} "
  # If there is a deploymentconfig for the given service
  -if [[ $($OC get deploymentconfigs -l service=${SERVICE}) ]]; then
  +if [[ $($OC get deploymentconfigs -l service=${SERVICE} &> /dev/null) ]]; then
  DEPLOYMENTCONFIG=$($OC get deploymentconfigs -l service=${SERVICE} -o name)
  # If the deploymentconfig is scaled to 0, scale to 1
  if [[ $($OC get ${DEPLOYMENTCONFIG} -o go-template --template='{{.status.replicas}}') == "0" ]]; then
  @@ -115,8 +115,30 @@ if [[ $($OC get deploymentconfigs -l service=${SERVICE}) ]]; then
  fi
  fi
  +# If there is a deployment for the given service
  +if [[ $($OC get deployment -l lagoon/service=${SERVICE} ) ]]; then
  + DEPLOYMENT=$($OC get deployment -l lagoon/service=${SERVICE} -o name)
  + # If the deployment is scaled to 0, scale to 1
  + if [[ $($OC get ${DEPLOYMENT} -o go-template --template='{{.status.replicas}}') == "0" ]]; then
  +
  + $OC scale --replicas=1 ${DEPLOYMENT} >/dev/null 2>&1
  +
  + # Wait until the scaling is done
  + while [[ ! $($OC get ${DEPLOYMENT} -o go-template --template='{{.status.readyReplicas}}') == "1" ]]
  + do
  + sleep 1
  + done
  + fi
  +fi
  +
  +
  POD=$($OC get pods -l service=${SERVICE} -o json | jq -r '.items[] | select(.metadata.deletionTimestamp == null) | select(.status.phase == "Running") | .metadata.name' | head -n 1)
  +# Check for newer Helm chart lagoon labels
  +if [[ ! $POD ]]; then
  + POD=$($OC get pods -l lagoon/service=${SERVICE} -o json | jq -r '.items[] | select(.metadata.deletionTimestamp == null) | select(.status.phase == "Running") | .metadata.name' | head -n 1)
  +fi
  +
  if [[ ! $POD ]]; then
  echo "No running pod found for service ${SERVICE}"
  exit 1
  