File tree Expand file tree Collapse file tree 2 files changed +18
-2
lines changed
helm-chart/eoapi/templates/pgstacboostrap Expand file tree Collapse file tree 2 files changed +18
-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
@@ -112,15 +118,20 @@ jobs:
112118 echo "raster service has started, moving on..."
113119 while [[ -z "$(kubectl get pod | grep "^vector-$RELEASE_NAME-.*$" | cut -d' ' -f1 | xargs -I{} kubectl logs pod/{} | grep "GET /healthz" | head -n 1)" ]]; do
114120 echo "still waiting for vector service to start..."
121+ kubectl get svc -l postgres-operator.crunchydata.com/role=pgbouncer | cat
122+ kubectl get pods
123+ kubectl get jobs
115124 sleep 1
116125 done
117126 echo "vector service has started, moving on..."
118127 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
119128 echo "still waiting for stac service to start..."
129+ kubectl get pods
130+ kubectl get jobs
120131 sleep 1
121132 done
122133 echo "all services have started, moving on..."
123-
134+
124135 - name : cleanup if services fail to boot
125136 if : steps.watchservices.outcome == 'failure'
126137 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 eoapi{{ $.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