File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments