Skip to content

Commit c7b4754

Browse files
committed
Added helm template output.
1 parent 39ec610 commit c7b4754

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

.github/workflows/helm-tests.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,20 @@ jobs:
7474
oci://registry.developers.crunchydata.com/crunchydata/pgo \
7575
--version ${{ env.PGO_VERSION }}
7676
77-
- name: helm render/install eoapi templates
77+
- name: helm output for debugging
7878
run: |
79-
export GITSHA='${{github.sha}}'
80-
8179
cd helm-chart
82-
8380
helm dependency build eoapi
81+
helm template $RELEASE_NAME \
82+
-f ./eoapi/values.yaml \
83+
-f ./eoapi/test-k3s-unittest-values.yaml \
84+
./eoapi
8485
86+
- name: helm render and install eoapi templates
87+
run: |
88+
export GITSHA='${{github.sha}}'
89+
cd helm-chart
90+
helm dependency upgrade eoapi
8591
helm install $RELEASE_NAME \
8692
-f ./eoapi/values.yaml \
8793
-f ./eoapi/test-k3s-unittest-values.yaml \

helm-chart/eoapi/templates/services/deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,11 @@ spec:
3939
- -c
4040
- |
4141
echo "Waiting for pgstacbootstrap job to complete..."
42+
{{- if $.Values.testing }}
43+
while ! kubectl -n {{ $.Release.Namespace }} wait --for=condition=complete job/{{ include "eoapi.pgstacHostName" $ }} --timeout=5s; do
44+
{{- else }}
4245
while ! kubectl -n {{ $.Release.Namespace }} wait --for=condition=complete job/pgstacbootstrap --timeout=5s; do
46+
{{- end }}
4347
echo "pgstacbootstrap job not completed yet. Checking again in 10 seconds..."
4448
sleep 10
4549
done

0 commit comments

Comments
 (0)