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

Adds initContainer to ensure stdout/stderr directories exist #93

Merged
merged 5 commits into from
Aug 2, 2019

Conversation

dleehr
Copy link
Member

@dleehr dleehr commented Aug 1, 2019

  • Checks if job.stdout or job.stderr are paths within directories
  • Adds an initContainer to the Pod spec if these are directories, and creates them before attempting redirection inside the primary container

for #8

dleehr added 5 commits July 25, 2019 15:20
- moves arg list quoting to quoted_arg_list function
- Adds fields/properties for init container stuff
- Checks `os.path.dirname` of stdout/stderr to see if any directories may need to exist
- Uses alpine image for now, but will switch to default-container
- Mocking the entire module caused other behavior reliant on os to fail
@dleehr dleehr requested a review from johnbradley August 1, 2019 20:18
Copy link
Contributor

@johnbradley johnbradley left a comment

Choose a reason for hiding this comment

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

LGTM

@dleehr dleehr merged commit 8d1fd99 into master Aug 2, 2019
@dleehr dleehr deleted the 8-initcontainer-for-redirect branch August 2, 2019 12:59
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.

2 participants