Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update show-pod-logs.sh #191

Merged
merged 6 commits into from
Nov 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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