File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed
helm-chart/eoapi/templates/pgstacboostrap Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 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 : |
Original file line number Diff line number Diff line change 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 }}
You can’t perform that action at this time.
0 commit comments