Skip to content

Commit

Permalink
Ensure the pod is completed
Browse files Browse the repository at this point in the history
Reduce sleep command to 5 minutes and never restart the Pod.
This ensures the pod mounting the volume with results completes in a
reasonable time.
By doing so we ensure that pods spun up by must-gather won't interefere
with future scans by keeping the PVC mounted.
  • Loading branch information
yuumasato committed Jul 29, 2024
1 parent c85dbe3 commit 2f3104f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion utils/must-gather/fetch-raw-results-pod-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ spec:
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
restartPolicy: Never
containers:
- name: extract-raw-results
image: registry.access.redhat.com/ubi9/ubi
command: ["sleep", "3000"]
command: ["sleep", "300"]
volumeMounts:
- mountPath: "/scan-results"
name: results-vol
Expand Down

0 comments on commit 2f3104f

Please sign in to comment.