Skip to content

Commit 0debfa3

Browse files
committed
Added more output.
1 parent c7b4754 commit 0debfa3

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

.github/workflows/helm-tests.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,12 @@ jobs:
9393
-f ./eoapi/test-k3s-unittest-values.yaml \
9494
./eoapi
9595
96+
- name: get k8s resources
97+
run: |
98+
kubectl get svc
99+
kubectl get pods
100+
kubectl get jobs
101+
96102
- name: sleep for 10s seconds while services boot
97103
shell: bash
98104
run: sleep 10s
@@ -117,10 +123,11 @@ jobs:
117123
echo "vector service has started, moving on..."
118124
while [[ -z "$(kubectl get pod | grep "^stac-$RELEASE_NAME-.*$" | cut -d' ' -f1 | xargs -I{} kubectl logs pod/{} | grep "GET /_mgmt/ping" | head -n 1)" ]]; do
119125
echo "still waiting for stac service to start..."
126+
kubectl get pods
120127
sleep 1
121128
done
122129
echo "all services have started, moving on..."
123-
130+
124131
- name: cleanup if services fail to boot
125132
if: steps.watchservices.outcome == 'failure'
126133
run: |

helm-chart/eoapi/templates/pgstacboostrap/job.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,12 @@ spec:
1616
initContainers:
1717
- name: wait-for-db
1818
image: busybox
19-
command: ['sh', '-c', 'until nc -z eoapi-pgbouncer 5432; do echo waiting for db; sleep 10; done;']
19+
command:
20+
{{ if .Values.testing }}
21+
['sh', '-c', 'until nc -z {{ $.Release.Name }}-pgbouncer 5432; do echo waiting for db; sleep 10; done;']
22+
{{ else }}
23+
['sh', '-c', 'until nc -z eoapi-pgbouncer 5432; do echo waiting for db; sleep 10; done;']
24+
{{ end }}
2025
containers:
2126
- name: pgstacbootstrap
2227
image: {{ .Values.pgstacBootstrap.image.name }}:{{ .Values.pgstacBootstrap.image.tag }}

0 commit comments

Comments
 (0)