Skip to content

Conversation

@nemacysts
Copy link
Member

It's entirely possible (and not an error) to create a podspec that contains paths to volume-mount that do not exist wherever service_configuration_lib is being invoked from.

As long as we ensure that we don't double-add things (which is only a problem due to the way that the env var keys are constructed here), skipping the existence check should be fine.

It's entirely possible (and not an error) to create a podspec that
contains paths to volume-mount that do not exist wherever
service_configuration_lib is being invoked from.

As long as we ensure that we don't double-add things (which is only a
problem due to the way that the env var keys are constructed here),
skipping the existence check should be fine.
@nemacysts
Copy link
Member Author

I think

**_get_k8s_docker_volumes_conf(volumes),
is the only place where we might run an executor with these files missing - but the container runtime should be fine with that: it'll simply create empty folders on-host rather than crash

(if we want to avoid that, I can update just that callsite to check for file existence)

@nemacysts nemacysts requested a review from jsleight September 9, 2024 21:34
@nemacysts nemacysts changed the title Stop checking if volume to mount in k8s exists locally [spark] Stop checking if volume to mount in k8s exists locally Sep 9, 2024
@nemacysts nemacysts merged commit 8c896ae into master Sep 10, 2024
nemacysts added a commit that referenced this pull request Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants