Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not mount unrestricted volumes that overlap BOSH mounts #173

Merged
merged 1 commit into from
Jul 3, 2024

Conversation

selzoc
Copy link
Member

@selzoc selzoc commented Jul 2, 2024

Previous to this commit, there was de-duplication in the volumes mounted, but only if they matched exactly. This commit adds filtering wherein unrestricted volumes will NOT be mounted if they overlap with existing BOSH mounts.

BOSH mounts include:

  • /var/vcap/jobs/<JOB_NAME>
  • /var/vcap/packages/<JOB_NAME>
  • /var/vcap/sys/log/<JOB_NAME> among others

Previous to this commit, there was de-duplication in the volumes
mounted, but only if they matched exactly.  This commit adds filtering
wherein unrestricted volumes will NOT be mounted if they overlap with
existing BOSH mounts.

BOSH mounts include:
* /var/vcap/jobs/<JOB_NAME>
* /var/vcap/packages/<JOB_NAME>
* /var/vcap/sys/log/<JOB_NAME>
among others
@rkoster rkoster requested review from a team, aramprice and anshrupani and removed request for a team July 3, 2024 08:51
Copy link
Member

@tcdowney tcdowney left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great to me. 🤩

@aramprice aramprice merged commit 1378a2f into master Jul 3, 2024
3 checks passed
@aramprice aramprice deleted the filter-volumes-bosh branch July 3, 2024 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

4 participants