Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

Commit

Permalink
Fix broken checklist scans with centos6
Browse files Browse the repository at this point in the history
OpenSCAP needs a writable /tmp for centos6 for reasons that
are still a bit unclear. Adding a writable /tmp to allow
scans to succeed.
  • Loading branch information
glb committed Nov 1, 2019
1 parent e256cc1 commit 93d7d4f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions templates/image-scan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ spec:
- --checklist-dir=/data
- --root=work/
volumeMounts:
- name: oscap-temp
mountPath: /tmp
- name: work
mountPath: /work
- name: oscap-feed-data
Expand Down Expand Up @@ -179,6 +181,8 @@ spec:
tolerations: {{ toYaml (default .Values.tolerations.defaults .Values.tolerations.imageScan) | nindent 8 }}
restartPolicy: Always
volumes:
- name: oscap-temp
emptyDir: {}
- name: oscap-feed-data
emptyDir:
sizeLimit: {{ default "1Gi" .Values.scan.openscap.dataVolume.sizeLimit | quote }}
Expand Down

0 comments on commit 93d7d4f

Please sign in to comment.