Skip to content

Do not mount unrestricted volumes that overlap BOSH mounts#173

Merged
aramprice merged 1 commit intomasterfrom
filter-volumes-bosh
Jul 3, 2024
Merged

Do not mount unrestricted volumes that overlap BOSH mounts#173
aramprice merged 1 commit intomasterfrom
filter-volumes-bosh

Conversation

@selzoc
Copy link
Copy Markdown
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, anshrupani and aramprice and removed request for a team July 3, 2024 08:51
Copy link
Copy Markdown
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
@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