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

Initialize volumes from images #1546

Merged
merged 1 commit into from
May 19, 2021

Conversation

jLopezbarb
Copy link
Contributor

Signed-off-by: Javier López Barba javier@okteto.com

Fixes #1540

Proposed changes

  • Initialize absolute path volumes with the content of the path in the image

Signed-off-by: Javier López Barba <javier@okteto.com>
Name: fmt.Sprintf("init-%s", svcName),
Image: "busybox",
Command: initContainerCommand,
VolumeMounts: initContainerVolumeMounts,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Should I propagate resources defined by the user for the main container?

@codecov
Copy link

codecov bot commented May 18, 2021

Codecov Report

Merging #1546 (02ad448) into master (2b81e10) will increase coverage by 0.18%.
The diff coverage is 91.89%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1546      +/-   ##
==========================================
+ Coverage   36.29%   36.48%   +0.18%     
==========================================
  Files          88       88              
  Lines        8403     8432      +29     
==========================================
+ Hits         3050     3076      +26     
- Misses       4986     4988       +2     
- Partials      367      368       +1     
Impacted Files Coverage Δ
pkg/cmd/stack/translate.go 71.04% <91.89%> (+1.17%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2b81e10...02ad448. Read the comment docs.

@jLopezbarb jLopezbarb merged commit 04a628b into master May 19, 2021
@jLopezbarb jLopezbarb deleted the jlopezbarb/initialize-volumes-from-image branch May 19, 2021 16:03
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.

initFromImage on stacks
2 participants