Skip to content

Jamstah/write-test-container

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

write-test-container

image

Used for examining the permissions of container mounts. Shows the extended attributes of the /mnt dir, tries to write to it, and then shows the extended attributes of the created file.

k8s

Resources to run the image in multiple scenarios. Will create a BuildConfig and ImageStream to build the image.

To use it successfully, you'll need to change the fsGroup in the fsgroupproject.yaml files to match the annotation on your namespace. It should be the first value of the openshift.io/sa.scc.supplemental-groups from your namespace.

You can adjust the kustomize to match with:

find -name "fsgroupproject.yaml" | xargs sed -i "s/1000670000/<your fsGroup>/"

Then apply to your cluster (make sure you are in the right namespace):

oc apply -k k8s/overlays/all

report.sh

Bash script to iterate over the Jobs in the namespace and report on them.

Will only work if the tests are the only jobs in the namespace. You also need to be logged into your cluster and be in the right namespace.

About

Container for doing a write test to a volume

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published