Navigation Menu

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

InitContainers should include AdditionalVolumes as well #1068

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

yanchenko-igor
Copy link
Contributor

Hi, I believe that init containers should have additional volumes as well. this patch fixes the issue.

@yanchenko-igor
Copy link
Contributor Author

Hi, any opinion on this PR?

@yanchenko-igor yanchenko-igor force-pushed the additionalvolumes_for_initcontainers branch from ee4bb71 to d58393a Compare September 17, 2020 07:09
@yanchenko-igor yanchenko-igor force-pushed the additionalvolumes_for_initcontainers branch from d58393a to fef2d2a Compare October 28, 2020 06:58
@FxKu
Copy link
Member

FxKu commented Oct 28, 2020

Hm, with initContainers we already support the full v1.Container spec. Can one not list additional volumes there?
What if somebody doesn't want the volume mounts in the initContainers? Why do you need it? 😃

And sorry, you had to wait for feedback this long.

@yanchenko-igor yanchenko-igor force-pushed the additionalvolumes_for_initcontainers branch from fef2d2a to ee2a55f Compare October 28, 2020 14:33
@gyrter
Copy link

gyrter commented Nov 13, 2020

Hello. Init containers can help us with different maintenance tasks. You have mechanism in CRD. It would be great if this feature would be unified.

@szuecs
Copy link
Member

szuecs commented Mar 1, 2021

@FxKu you define volumes in pod spec and reference them in initContainers, so if the podSpec does not contain "my-custom-vol", the container can not reference it.
Not sure if this is the problem, that @yanchenko-igor and @gyrter are referring to.

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.

None yet

4 participants