Commit 1e53ee5
Compare path-parts instead of path-strings when filtering mounts
Check to see whether the "directory parts" of the volume are a sub-set
of and existing BPM-default directory (that will already be mounted) so
that we do not accidentally filter out mounts which have a name that is
a sub-string of the existing job. For example the job `service-metrics`
should be able to have an unrestricted volume mount of the
`service-metrics-adapter` job directory.
Specifically a job located at `/var/vcap/jobs/service-metrics` was
unable to access an "unrestricted volume" located at
`/var/vcap/jobs/service-metrics-adapter` because the job being
instantiated alreay had default mount which was a (string) prefix of the
job directory it was attempting to mount.
Signed-off-by: Rajath Agasthya <rajath.agasthya@broadcom.com>
Signed-off-by: aram price <aram.price@broadcom.com>1 parent 5b3a58c commit 1e53ee5
2 files changed
+22
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
293 | 294 | | |
294 | 295 | | |
295 | 296 | | |
296 | | - | |
297 | | - | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
298 | 309 | | |
299 | 310 | | |
300 | 311 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
869 | 869 | | |
870 | 870 | | |
871 | 871 | | |
872 | | - | |
| 872 | + | |
| 873 | + | |
873 | 874 | | |
874 | 875 | | |
875 | 876 | | |
| |||
894 | 895 | | |
895 | 896 | | |
896 | 897 | | |
897 | | - | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
898 | 905 | | |
899 | 906 | | |
900 | 907 | | |
| |||
0 commit comments