Skip to content

Commit d67028e

Browse files
committed
More debug statements
1 parent 87a8307 commit d67028e

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

.github/workflows/k8s-tests.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,13 @@ jobs:
9999
helm status defectdojo
100100
helm history defectdojo
101101
kubectl get events --sort-by=.metadata.creationTimestamp
102-
kubectl get pvc
103-
kubectl get pv
104-
kubectl logs statefulset/defectdojo-postgresql -c postgresql --tail=100
105-
kubectl logs statefulset/defectdojo-redis-master -c redis --tail=100
102+
kubectl logs pod/defectdojo-postgresql-0 -c init-chmod-data --previous --tail=200
103+
echo "Inspect what the init container thinks the path is"
104+
kubectl get sts defectdojo-postgresql -o jsonpath='{.spec.template.spec.initContainers[?(@.name=="init-chmod-data")].command}{" "}{.spec.template.spec.initContainers[?(@.name=="init-chmod-data")].args}{"\n"}'
105+
echo "Where is the PVC mounted for the main container?"
106+
kubectl get sts defectdojo-postgresql -o jsonpath='{range .spec.template.spec.containers[?(@.name=="postgresql")].volumeMounts[*]}{.name} {.mountPath}{"\n"}{end}'
107+
echo "And for the init container specifically"
108+
kubectl get sts defectdojo-postgresql -o jsonpath='{range .spec.template.spec.initContainers[?(@.name=="init-chmod-data")].volumeMounts[*]}{.name} {.mountPath}{"\n"}{end}'
106109
107110
- name: Check Application
108111
timeout-minutes: 10

0 commit comments

Comments
 (0)