Skip to content

Commit

Permalink
Update show-pod-logs.sh (#191)
Browse files Browse the repository at this point in the history
* Update show-pod-logs.sh

* Update build.yml

* Update build.yml

* Update installChart.sh

* Update installChart.sh

* Update testConfigMaps.sh
  • Loading branch information
bakito authored Nov 13, 2023
1 parent 917256b commit d594010
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,18 @@ jobs:
java-version: '17'

- name: 🛃 Test generated trust stores
id: test_generated_stores
run: ./testdata/e2e/testConfigMaps.sh
continue-on-error: true

- name: 📜 Show pod logs
- name: 📜 Print pod logs
run: ./testdata/e2e/show-pod-logs.sh

- name: ❌ Fail if 'Test generated trust stores' failed
if: steps.test_generated_stores.outcome=='failure'
run: |
echo "Step 'Test generated trust stores' failed: Check 'Test generated trust storesr' and 'Print pod logs' as well as the job summary for errors"
exit 1
helm:
name: Helm Checks
Expand Down
4 changes: 3 additions & 1 deletion testdata/e2e/installChart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,7 @@ helm upgrade --install java-truststore-injection-webhook chart \
--namespace jti \
--create-namespace \
-f testdata/e2e/e2e-values.yaml \
--atomic
--atomic \
--wait \
--timeout 60s
kubectl get pods -n jti
2 changes: 1 addition & 1 deletion testdata/e2e/show-pod-logs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ set -e

echo "## Pod adguardhome-origin logs" >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
kubectl logs -l app.kubernetes.io/instance=java-truststore-injection-webhook >> $GITHUB_STEP_SUMMARY
kubectl logs -l app.kubernetes.io/instance=java-truststore-injection-webhook --namespace jti >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
2 changes: 1 addition & 1 deletion testdata/e2e/testConfigMaps.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
set -e

kubectl get svc -n jti
echo "💾 Creating ConfigMaps"
kubectl apply -n jti -f testdata/e2e/testConfigMaps.yaml

Expand Down

0 comments on commit d594010

Please sign in to comment.