Skip to content

Commit

Permalink
Use more explicit pod name
Browse files Browse the repository at this point in the history
Let's be more obvious that the pod extracting raw results was created by
the must gather image.
  • Loading branch information
yuumasato committed Jul 26, 2024
1 parent a3764af commit e205725
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions utils/must-gather/fetch-raw-results-pod-template.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
apiVersion: "v1"
kind: Pod
metadata:
name: extract-raw-results-%CLAIMNAME%
name: must-gather-raw-results-%CLAIMNAME%
spec:
securityContext:
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
restartPolicy: Never
containers:
- name: extract-raw-results
- name: must-gather-raw-results
image: registry.access.redhat.com/ubi9/ubi
command: ["sleep", "60"]
volumeMounts:
Expand Down
2 changes: 1 addition & 1 deletion utils/must-gather/gather_compliance
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ do
mkdir ${RAW_RESULTS_DIR}/${SCAN}
CLAIMNAME=$(${BIN} get pvc -n ${NAMESPACE} ${SCAN} -ojsonpath='{.metadata.name}')
# The EXTRACT_POD_NAME needs to match the pod name in fetch-raw-results-pod-template.yaml
EXTRACT_POD_NAME="extract-raw-results-${CLAIMNAME}"
EXTRACT_POD_NAME="must-gather-raw-results-${CLAIMNAME}"
sed s/%CLAIMNAME%/${CLAIMNAME}/g /usr/share/fetch-raw-results-pod-template.yaml > ${EXTRACT_PODS_DIR}/${EXTRACT_POD_NAME}-pod.yaml

${BIN} create -n ${NAMESPACE} -f ${EXTRACT_PODS_DIR}/${EXTRACT_POD_NAME}-pod.yaml
Expand Down

0 comments on commit e205725

Please sign in to comment.