Skip to content

Commit 01ba253

Browse files
authored
feat(helm): Use --wait during tests (#10744)
* feat(helm): Use `--wait` during tests * more debug outputs * fix(helm): Break circular dependency
1 parent 7390350 commit 01ba253

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

.github/workflows/k8s-tests.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,26 +70,28 @@ jobs:
7070
echo "pgsql=${{ env.HELM_PG_DATABASE_SETTINGS }}" >> $GITHUB_ENV
7171
echo "redis=${{ env.HELM_REDIS_BROKER_SETTINGS }}" >> $GITHUB_ENV
7272
73-
- name: Deploying Djano application with ${{ matrix.databases }} ${{ matrix.brokers }}
74-
timeout-minutes: 10
73+
- name: Deploying Django application with ${{ matrix.databases }} ${{ matrix.brokers }}
74+
timeout-minutes: 15
7575
run: |-
7676
helm install \
7777
--timeout 800s \
78+
--wait \
79+
--wait-for-jobs \
7880
defectdojo \
7981
./helm/defectdojo \
8082
--set django.ingress.enabled=true \
8183
--set imagePullPolicy=Never \
8284
${{ env[matrix.databases] }} \
8385
${{ env[matrix.brokers] }} \
8486
--set createSecret=true \
85-
--set tag=${{ matrix.os }} \
86-
# --set imagePullSecrets=defectdojoregistrykey
87+
--set tag=${{ matrix.os }}
8788
8889
- name: Check deployment status
90+
if: always()
8991
run: |-
90-
kubectl get pods
91-
kubectl get ingress
92-
kubectl get services
92+
kubectl get all,ingress # all = pods, services, deployments, replicasets, statefulsets, jobs
93+
helm status defectdojo
94+
helm history defectdojo
9395
9496
- name: Check Application
9597
timeout-minutes: 10

0 commit comments

Comments
 (0)