File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -250,10 +250,12 @@ getCertificate() {
250250# Wait 5 minutes for the certificate to appear.
251251for (( i= 0 ;;i++ )) ; do if getCertificate; then exit 0; fi ; sleep 30; done | timeout -v -- 5m cat
252252
253+ export AGENT_POD_NAME=$( kubectl get pods -n venafi -l app.kubernetes.io/name=venafi-kubernetes-agent -o jsonpath=" {.items[0].metadata.name}" )
253254echo " Scaling down agent deployment to kill pod and flush coverage to the PVC..."
254255kubectl scale deployment venafi-kubernetes-agent -n venafi --replicas=0
255- echo " Waiting for agent pod to terminate..."
256- kubectl wait deployment venafi-kubernetes-agent -n venafi --for=condition=scaled --timeout=60s
256+ echo " Waiting for agent pod '${AGENT_POD_NAME} ' to terminate as a result of the scale-down..."
257+ kubectl wait --for=delete pod/${AGENT_POD_NAME} -n venafi --timeout=90s
258+ echo " Starting helper pod to retrieve coverage files from the PVC..."
257259
258260kubectl apply -n venafi -f - << EOF
259261apiVersion: v1
You can’t perform that action at this time.
0 commit comments