We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d4d6a1 commit 1433c1eCopy full SHA for 1433c1e
.github/workflows/k8s-testing.yml
@@ -2,11 +2,11 @@ name: k8s deployment
2
on:
3
pull_request_target:
4
push:
5
- branches:
6
- - master
7
- - dev
8
- - release/**
9
- - hotfix/**
+ branches:
+ - master
+ - dev
+ - release/**
+ - hotfix/**
10
11
env:
12
DD_DOCKER_REPO: defectdojo
@@ -214,4 +214,14 @@ jobs:
214
echo "ERROR: cannot display login screen; got HTTP code $CR"
215
exit 1
216
fi
217
+ echo "Final Check of components"
218
+ errors=`kubectl get pods | grep Error | awk '{print $1}'`
219
+ if [[ ! -z $errors ]]; then
220
+ echo "Few pods with errors"
221
+ for line in $errors; do
222
+ echo "Dumping log from $line"
223
+ kubectl logs --tail 50 $line
224
+ done
225
+ exit 1
226
+ fi
227
echo "DD K8S successfully deployed"
0 commit comments