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

Init okteto persistent volume from image content #1541

Merged
merged 1 commit into from
May 18, 2021

Conversation

pchico83
Copy link
Contributor

Signed-off-by: Pablo Chico de Guzman pchico83@gmail.com

Initializing the volume from the image speeds up the first synchronization. It can also be used to reused the node_modules dependencies installed in the dev image

@codecov
Copy link

codecov bot commented May 17, 2021

Codecov Report

Merging #1541 (488762d) into master (c93f09e) will increase coverage by 0.14%.
The diff coverage is 78.26%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1541      +/-   ##
==========================================
+ Coverage   36.17%   36.31%   +0.14%     
==========================================
  Files          88       88              
  Lines        8413     8390      -23     
==========================================
+ Hits         3043     3047       +4     
+ Misses       5007     4979      -28     
- Partials      363      364       +1     
Impacted Files Coverage Δ
cmd/up/syncthing.go 0.00% <0.00%> (ø)
pkg/model/dev.go 60.12% <ø> (-0.20%) ⬇️
pkg/model/translation.go 0.00% <ø> (ø)
pkg/model/volumes.go 80.00% <ø> (-0.42%) ⬇️
pkg/k8s/deployments/translate.go 85.67% <90.00%> (+5.10%) ⬆️

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 c93f09e...488762d. Read the comment docs.

//OktetoInitFromImage name of the okteto init from image container
OktetoInitDataName = "okteto-init-data"
//OktetoInitVolumeName name of the okteto init container that initializes the persistent colume from image content
OktetoInitVolumeName = "okteto-init-volume"
Copy link
Member

Choose a reason for hiding this comment

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

if it's already a volume, do you think it might be redundant to call it -volume?

Signed-off-by: Pablo Chico de Guzman <pchico83@gmail.com>
@pchico83 pchico83 merged commit dfd7ad6 into master May 18, 2021
@pchico83 pchico83 deleted the pchico83/init-from-image branch May 18, 2021 08:56
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

3 participants