Skip to content

Commit

Permalink
Merge branch 'master' into release-0.34
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhoherd committed Feb 12, 2024
2 parents c607cd7 + 5350976 commit 63b22f2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 16 deletions.
21 changes: 5 additions & 16 deletions bin/helpers.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
set -euo pipefail

NAMESPACE="${NAMESPACE:-astronomer}"
namespace="${NAMESPACE:-astronomer}"

function hr {
echo "======================="
Expand All @@ -10,23 +10,12 @@ function hr {
function get_debugging_info {
echo "Failed to deploy Astronomer!"
echo "Printing description and logs where containers in pod are not 1/1..."
for pod in $(kubectl get pods -n "${NAMESPACE}" -o name | grep -vE 'NAME|Completed| ([0-9]+)/\1 ') ; do
for pod in $(kubectl -n "${namespace}" get pods | grep -vE 'NAME|Completed| ([0-9]+)/\1 ' | awk '{print $1}') ; do
hr
set -x
kubectl describe -n "${NAMESPACE}" "$pod"
kubectl logs -n "${NAMESPACE}" "$pod" --all-containers=true | tail -n 30
set +x
bash -xc "kubectl describe -n '${namespace}' pod '${pod}'"
bash -xc "kubectl logs -n '${namespace}' '${pod}' --all-containers=true | tail -n 30"
hr
done
kubectl get secrets --all-namespaces
hr
kubectl get pods --all-namespaces
hr
kubectl get ds --all-namespaces
hr
kubectl get sts --all-namespaces
hr
kubectl get deployments --all-namespaces
hr
kubectl get events,secrets,svc,ds,sts,deployments,pods -A
docker exec kind-control-plane crictl images
}
4 changes: 4 additions & 0 deletions bin/run-ci
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,22 @@ echo "Deploying Astronomer..."
# make lint

# This is so CI does not timeout on "no input in 10 minutes"
echo "Watching all pods"
kubectl get pods -n "$NAMESPACE" -w &
WATCH_PID=$!

echo "Installing platform"
"$BIN_DIR/install-platform"

sleep 5

echo "Waiting for platform to be ready"
"$BIN_DIR/waitfor-platform"

# "$BIN_DIR/create-initial-user" "tester@astronomer.io" "password"

sudo kill -9 $WATCH_PID

### Test Platform
echo "Testing platform"
"$BIN_DIR/test-ap"

0 comments on commit 63b22f2

Please sign in to comment.